#912ED4#912ED4

#912ED4 is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 53.3% C 0.236 H 306.9°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#912ED4
RGBrgb(145, 46, 212)
HSLhsl(276, 66%, 51%)
HSVhsv(276, 78%, 83%)
CMYKcmyk(31.6%, 78.3%, 0%, 16.9%)
CIE-LABlab(42.35, 66.85, -66.44)
CIE-LCHlch(42.35, 94.25, 315.18°)
OKLaboklab(53.34% 0.1417 -0.189)
OKLCHoklch(53.34% 0.236 306.9)
XYZxyz(24.5351, 12.7275, 63.4387)
Luminance0.1273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#912ED4 #71D42E
analogous
#3E2ED4 #912ED4 #D42EC4
triadic
#912ED4 #D4912E #2ED491
tetradic
#912ED4 #D43E2E #71D42E #2EC4D4
square
#912ED4 #D43E2E #71D42E #2EC4D4
split-complementary
#912ED4 #C4D42E #2ED43E
monochromatic
#4C1770 #6F22A3 #912ED4 #AC61DE #C694E9

Accessibility & contrast

On white

5.92
#912ED4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#912ED4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #912ED4
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##912ED4#FFFFFF#000000##FFFFFF
##912ED41.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D8
Deuteranopia (green-blind)
#0065D1
Tritanopia (blue-blind)
#855981
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #912ed4;
/* rgb */ color: rgb(145, 46, 212);
/* oklch */ color: oklch(53.3% 0.236 306.9);
Tailwind
colors: {
  custom: {
    50: '#b772e2',
    500: '#912ed4',
    950: '#000000',
  },
}
SCSS
$custom: #912ed4;
$custom-light: #b772e2;
$custom-dark: #000000;
JSON
{
  "hex": "#912ed4",
  "rgb": {
    "r": 145,
    "g": 46,
    "b": 212
  },
  "hsl": {
    "h": 275.783,
    "s": 65.873,
    "l": 50.588
  },
  "oklch": {
    "l": 0.53339,
    "c": 0.23625,
    "h": 306.9
  },
  "luminance": 0.12727
}

Semantic roles & 50–950 ramp

primary
#912ED4
secondary
#A8D48A
accent
#E93F84
background
#FBF7FE
surface
#F7EDFC
border
#D0C8D5
text
#120915
muted
#817B84

Preview Lab

Preview with #912ED4

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

Preview Lab → · Contrast checker → · Palette generator →

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