#912ED7#912ED7

#912ED7 is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 53.6% C 0.239 H 306.1°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#912ED7
RGBrgb(145, 46, 215)
HSLhsl(275, 68%, 51%)
HSVhsv(275, 79%, 84%)
CMYKcmyk(32.6%, 78.6%, 0%, 15.7%)
CIE-LABlab(42.58, 67.49, -67.79)
CIE-LCHlch(42.58, 95.66, 314.88°)
OKLaboklab(53.57% 0.141 -0.193)
OKLCHoklch(53.57% 0.239 306.1)
XYZxyz(24.9171, 12.8803, 65.4503)
Luminance0.1288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#912ED7 #74D72E
analogous
#3C2ED7 #912ED7 #D72EC8
triadic
#912ED7 #D7912E #2ED791
tetradic
#912ED7 #D73C2E #74D72E #2EC8D7
square
#912ED7 #D73C2E #74D72E #2EC8D7
split-complementary
#912ED7 #C8D72E #2ED73C
monochromatic
#4D1674 #7020A8 #912ED7 #AC61E1 #C795EB

Accessibility & contrast

On white

5.87
#912ED7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#912ED7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #912ED7
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##912ED7#FFFFFF#000000##FFFFFF
##912ED71.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062DC
Deuteranopia (green-blind)
#0065D4
Tritanopia (blue-blind)
#845B83
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #912ed7;
/* rgb */ color: rgb(145, 46, 215);
/* oklch */ color: oklch(53.6% 0.239 306.1);
Tailwind
colors: {
  custom: {
    50: '#b773e4',
    500: '#912ed7',
    950: '#000000',
  },
}
SCSS
$custom: #912ed7;
$custom-light: #b773e4;
$custom-dark: #000000;
JSON
{
  "hex": "#912ed7",
  "rgb": {
    "r": 145,
    "g": 46,
    "b": 215
  },
  "hsl": {
    "h": 275.148,
    "s": 67.871,
    "l": 51.176
  },
  "oklch": {
    "l": 0.53574,
    "c": 0.23899,
    "h": 306.1
  },
  "luminance": 0.1288
}

Semantic roles & 50–950 ramp

primary
#912ED7
secondary
#AAD68B
accent
#EB3D85
background
#FBF7FE
surface
#F7EDFC
border
#D0C8D5
text
#120916
muted
#817B84

Preview Lab

Preview with #912ED7

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

Preview Lab → · Contrast checker → · Palette generator →

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