#912DD3#912DD3

#912DD3 is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 53.2% C 0.236 H 307.2°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#912DD3
RGBrgb(145, 45, 211)
HSLhsl(276, 65%, 50%)
HSVhsv(276, 79%, 83%)
CMYKcmyk(31.3%, 78.7%, 0%, 17.3%)
CIE-LABlab(42.15, 66.98, -66.18)
CIE-LCHlch(42.15, 94.16, 315.34°)
OKLaboklab(53.18% 0.1427 -0.1883)
OKLCHoklch(53.18% 0.236 307.2)
XYZxyz(24.3708, 12.6000, 62.7636)
Luminance0.1260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#912DD3 #6FD32D
analogous
#3E2DD3 #912DD3 #D32DC2
triadic
#912DD3 #D3912D #2DD391
tetradic
#912DD3 #D33E2D #6FD32D #2DC2D3
square
#912DD3 #D33E2D #6FD32D #2DC2D3
split-complementary
#912DD3 #C2D32D #2DD33E
monochromatic
#4C176E #6E22A1 #912DD3 #AC60DE #C692E8

Accessibility & contrast

On white

5.97
#912DD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#912DD3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #912DD3
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##912DD3#FFFFFF#000000##FFFFFF
##912DD31.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D7
Deuteranopia (green-blind)
#0064D0
Tritanopia (blue-blind)
#865880
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #912dd3;
/* rgb */ color: rgb(145, 45, 211);
/* oklch */ color: oklch(53.2% 0.236 307.2);
Tailwind
colors: {
  custom: {
    50: '#b772e2',
    500: '#912dd3',
    950: '#000000',
  },
}
SCSS
$custom: #912dd3;
$custom-light: #b772e2;
$custom-dark: #000000;
JSON
{
  "hex": "#912dd3",
  "rgb": {
    "r": 145,
    "g": 45,
    "b": 211
  },
  "hsl": {
    "h": 276.145,
    "s": 65.354,
    "l": 50.196
  },
  "oklch": {
    "l": 0.53179,
    "c": 0.23625,
    "h": 307.2
  },
  "luminance": 0.126
}

Semantic roles & 50–950 ramp

primary
#912DD3
secondary
#A6D389
accent
#E83F83
background
#FBF7FD
surface
#F7EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #912DD3

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#912DD3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva