Action
Primary button
Use the controls above or point to and press the button to inspect its visual states.
Color reference
Vivid Mid-light Magenta
This is a vivid, mid-light magenta under the deterministic OKLCH hue, lightness, and chroma ranges. Its closest standardized CSS named color is Medium Orchid (#BA55D3), measured with straight-line OKLab distance.
Copyable values
Values are calculated from the same opaque sRGB color. Display rounding does not alter the internal calculations.
| Format | Value | Action |
|---|---|---|
| HEX | #B552E6 |
|
| RGB | rgb(181 82 230) |
|
| HSL | hsl(280 74.75% 61.18%) |
|
| HSV | hsv(280 64.35% 90.2%) |
|
| HWB | hwb(280 32.16% 9.8%) |
|
| XYZ D65 | color(xyz-d65 0.363542 0.215724 0.771144) |
|
| LAB | lab(53.0877% 57.9196 -58.6808) |
|
| LCH | lch(53.0877% 82.4506 314.626) |
|
| OKLAB | oklab(62.7153% 0.150671 -0.164223) |
|
| OKLCH | oklch(62.7153% 0.22287 312.5356) |
Real-world test
Preview the source as a primary action, subtle status, form treatment, and card surface. Persistent state controls help touch and keyboard users inspect the same normal, hover, and active colors.
Action
Use the controls above or point to and press the button to inspect its visual states.
Status
A 12% source tint over white provides the background; readable text is selected separately.
Form
Source ring on white: 3.95:1 · meets the 3:1 non-text threshold where applicable.
Surface
The selected state becomes the card surface with its strongest black-or-white text pairing.
Accessibility diagnostics
Each result applies only to the named foreground, background, text size, and requirement. It is not a complete accessibility or component-conformance claim.
On white
On black
Use guidance
Not recommended
#B552E6 does not reach 4.5:1 on white or Hue Codex paper, so it should not be used there for normal-sized text.
Potential fit
Against Hue Codex paper, the color reaches 3.78:1. That meets the 3:1 color-contrast threshold where WCAG 1.4.11 applies, but states, shape, and non-color cues still need review.
Readable pairing available
Black text provides the stronger black/white pairing on #B552E6 at 5.31:1. This validates only that text pair, not hover, focus, disabled, or adjacent-color states.
Distinctive accent
Its OKLCH chroma of 0.2229 gives it enough visual presence for an accent or primary role when the tested foreground and neighboring colors pass.
Pair available
The stronger black/white background is black at 5.31:1. Always retest against the actual rendered background and text size.
Tested backgrounds
| Pair | Background | Contrast ratio |
|---|---|---|
| Black#000000 | 5.31:1 | |
| Hue Codex ink#10212B | 4.17:1 | |
| White#FFFFFF | 3.95:1 | |
| Hue Codex paper#FBFAF5 | 3.78:1 | |
| Soft neutral#F2EFE6 | 3.44:1 |
Design-system starting point
The source color is preserved at the nearest lightness step. Other swatches keep its OKLCH hue, moderate chroma toward the extremes, and reduce chroma only when needed to remain in sRGB.
This is a Hue Codex reference scale, not a claim that the values match Tailwind, Material, or another framework’s named palette.
Adjust the #B552E6 scale in Tints, Shades & TonesColor relationships
Hue rotations use OKLCH while preserving lightness and requested chroma. When a rotated result falls outside sRGB, chroma is reduced deterministically and disclosed.
Applied pairing
The source anchors the main action while the complement marks a secondary status. Contrast is selected separately for each fill.
Distance matching
Matches use straight-line OKLab distance ×100. A smaller value means the coordinates are closer in this model; it is not a claim that two tokens are interchangeable in a design system.
CSS named color
#BA55D3 OKLab distance ×100: 3.22
Tailwind v4 default
oklch(62.7% 0.265 303.9)
OKLab distance ×100: 5.58 · sRGB preview #AD46FF
Print boundary
Reliable print matching needs licensed reference data plus a defined ink, paper, profile, and viewing condition.
Read the print methodologyColor-vision screening
These encoded-sRGB matrix previews are screening approximations. They help reveal possible color-only distinctions but do not reproduce every person’s vision or establish accessibility conformance.
Red-vision deficiency approximation
Green-vision deficiency approximation
Blue-yellow deficiency approximation
Monochromatic-vision approximation
Ready to use
Exports preserve the source, readable foreground, and generated 50–900 scale. Tailwind v4 CSS-first and Tailwind v3 JavaScript-config formats are labeled separately.
Semantic aliases and the complete 50–900 scale.
:root {
--color-primary: #B552E6;
--color-on-primary: #000000;
--color-primary-oklch: oklch(62.7153% 0.22287 312.5356);
--color-primary-50: #FAF2FF;
--color-primary-100: #EED2FF;
--color-primary-200: #E0ACFF;
--color-primary-300: #D382FF;
--color-primary-400: #B552E6;
--color-primary-500: #A544D4;
--color-primary-600: #8A2CB6;
--color-primary-700: #710D98;
--color-primary-800: #550074;
--color-primary-900: #38004F;
}
Current @theme syntax for bg-brand, text-brand, and scale utilities.
@import "tailwindcss";
@theme {
--color-brand: #B552E6;
--color-brand-foreground: #000000;
--color-brand-50: #FAF2FF;
--color-brand-100: #EED2FF;
--color-brand-200: #E0ACFF;
--color-brand-300: #D382FF;
--color-brand-400: #B552E6;
--color-brand-500: #A544D4;
--color-brand-600: #8A2CB6;
--color-brand-700: #710D98;
--color-brand-800: #550074;
--color-brand-900: #38004F;
}
CommonJS theme.extend.colors for JavaScript-config projects.
module.exports = {
theme: {
extend: {
colors: {
brand: {
'50': '#FAF2FF',
'100': '#EED2FF',
'200': '#E0ACFF',
'300': '#D382FF',
'400': '#B552E6',
'500': '#A544D4',
'600': '#8A2CB6',
'700': '#710D98',
'800': '#550074',
'900': '#38004F',
DEFAULT: '#B552E6',
foreground: '#000000',
},
},
},
},
};
Semantic source, foreground, OKLCH, and scale variables.
$color-primary: #B552E6;
$color-on-primary: #000000;
$color-primary-oklch: oklch(62.7153% 0.22287 312.5356);
$color-primary-50: #FAF2FF;
$color-primary-100: #EED2FF;
$color-primary-200: #E0ACFF;
$color-primary-300: #D382FF;
$color-primary-400: #B552E6;
$color-primary-500: #A544D4;
$color-primary-600: #8A2CB6;
$color-primary-700: #710D98;
$color-primary-800: #550074;
$color-primary-900: #38004F;
Static fallbacks followed by OKLab tint and shade declarations.
:root {
--color-primary: #B552E6;
--color-primary-tint: #E0ACFF;
--color-primary-tint: color-mix(in oklab, var(--color-primary) 72%, white);
--color-primary-shade: #710D98;
--color-primary-shade: color-mix(in oklab, var(--color-primary) 82%, black);
}
Source formats, readable text, and the generated scale.
{
"name": "Vivid Mid-light Magenta",
"hex": "#B552E6",
"rgb": "rgb(181 82 230)",
"oklch": "oklch(62.7153% 0.22287 312.5356)",
"recommendedText": "#000000",
"scale": {
"50": "#FAF2FF",
"100": "#EED2FF",
"200": "#E0ACFF",
"300": "#D382FF",
"400": "#B552E6",
"500": "#A544D4",
"600": "#8A2CB6",
"700": "#710D98",
"800": "#550074",
"900": "#38004F"
}
}
Continue the decision
Reference values are a starting point. Test the color in its real role, background, states, typography, and surrounding palette before shipping.