#912DCA#912DCA

#912DCA is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 52.5% C 0.228 H 309.4°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#912DCA
RGBrgb(145, 45, 202)
HSLhsl(278, 64%, 48%)
HSVhsv(278, 78%, 79%)
CMYKcmyk(28.2%, 77.7%, 0%, 20.8%)
CIE-LABlab(41.47, 65.09, -62.09)
CIE-LCHlch(41.47, 89.95, 316.35°)
OKLaboklab(52.49% 0.1448 -0.1762)
OKLCHoklch(52.49% 0.228 309.4)
XYZxyz(23.2740, 12.1612, 56.9870)
Luminance0.1216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#912DCA #66CA2D
analogous
#432DCA #912DCA #CA2DB4
triadic
#912DCA #CA912D #2DCA91
tetradic
#912DCA #CA432D #66CA2D #2DB4CA
square
#912DCA #CA432D #66CA2D #2DB4CA
split-complementary
#912DCA #B4CA2D #2DCA43
monochromatic
#491766 #6D2298 #912DCA #AC5ADA #C58CE5

Accessibility & contrast

On white

6.12
#912DCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#912DCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #912DCA
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##912DCA#FFFFFF#000000##FFFFFF
##912DCA1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECE
Deuteranopia (green-blind)
#0063C7
Tritanopia (blue-blind)
#88547B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #912dca;
/* rgb */ color: rgb(145, 45, 202);
/* oklch */ color: oklch(52.5% 0.228 309.4);
Tailwind
colors: {
  custom: {
    50: '#b771db',
    500: '#912dca',
    950: '#000000',
  },
}
SCSS
$custom: #912dca;
$custom-light: #b771db;
$custom-dark: #000000;
JSON
{
  "hex": "#912dca",
  "rgb": {
    "r": 145,
    "g": 45,
    "b": 202
  },
  "hsl": {
    "h": 278.217,
    "s": 63.563,
    "l": 48.431
  },
  "oklch": {
    "l": 0.52487,
    "c": 0.22808,
    "h": 309.4
  },
  "luminance": 0.12161
}

Semantic roles & 50–950 ramp

primary
#912DCA
secondary
#9FCF83
accent
#E7417D
background
#FBF7FD
surface
#F7EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #912DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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