#912AB7#912AB7

#912AB7 is a mid, highly saturated purple. Relative luminance 0.111; OKLCH L 50.8% C 0.214 H 314.8°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#912AB7
RGBrgb(145, 42, 183)
HSLhsl(284, 63%, 44%)
HSVhsv(284, 77%, 72%)
CMYKcmyk(20.8%, 77%, 0%, 28.2%)
CIE-LABlab(39.74, 62.25, -53.77)
CIE-LCHlch(39.74, 82.26, 319.18°)
OKLaboklab(50.84% 0.1509 -0.1518)
OKLCHoklch(50.84% 0.214 314.8)
XYZxyz(21.0508, 11.0953, 45.8233)
Luminance0.1109 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#912AB7 #50B72A
analogous
#4B2AB7 #912AB7 #B72A97
triadic
#912AB7 #B7912A #2AB791
tetradic
#912AB7 #B74B2A #50B72A #2A97B7
square
#912AB7 #B74B2A #50B72A #2A97B7
split-complementary
#912AB7 #97B72A #2AB74B
monochromatic
#421353 #6A1F85 #912AB7 #AF49D5 #C57BE1

Accessibility & contrast

On white

6.52
#912AB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#912AB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #912AB7
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##912AB7#FFFFFF#000000##FFFFFF
##912AB71.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BB
Deuteranopia (green-blind)
#2260B4
Tritanopia (blue-blind)
#8E4A70
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #912ab7;
/* rgb */ color: rgb(145, 42, 183);
/* oklch */ color: oklch(50.8% 0.214 314.8);
Tailwind
colors: {
  custom: {
    50: '#b66fcd',
    500: '#912ab7',
    950: '#000000',
  },
}
SCSS
$custom: #912ab7;
$custom-light: #b66fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#912ab7",
  "rgb": {
    "r": 145,
    "g": 42,
    "b": 183
  },
  "hsl": {
    "h": 283.83,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.50838,
    "c": 0.21404,
    "h": 314.8
  },
  "luminance": 0.11095
}

Semantic roles & 50–950 ramp

primary
#912AB7
secondary
#8BC974
accent
#E6426E
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #912AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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