#812DB7#812DB7

#812DB7 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 49.0% C 0.206 H 308.1°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#812DB7
RGBrgb(129, 45, 183)
HSLhsl(277, 61%, 45%)
HSVhsv(277, 75%, 72%)
CMYKcmyk(29.5%, 75.4%, 0%, 28.2%)
CIE-LABlab(37.78, 58.17, -57.07)
CIE-LCHlch(37.78, 81.49, 315.55°)
OKLaboklab(48.97% 0.1273 -0.162)
OKLCHoklch(48.97% 0.206 308.1)
XYZxyz(18.5371, 9.9631, 45.7371)
Luminance0.0996 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812DB7 #63B72D
analogous
#3C2DB7 #812DB7 #B72DA8
triadic
#812DB7 #B7812D #2DB781
tetradic
#812DB7 #B73C2D #63B72D #2DA8B7
square
#812DB7 #B73C2D #63B72D #2DA8B7
split-complementary
#812DB7 #A8B72D #2DB73C
monochromatic
#3C1555 #5E2186 #812DB7 #9F4ED3 #BA7FDF

Accessibility & contrast

On white

7.02
#812DB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#812DB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812DB7
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812DB7#FFFFFF#000000##FFFFFF
##812DB71.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BB
Deuteranopia (green-blind)
#005AB4
Tritanopia (blue-blind)
#784E70
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #812db7;
/* rgb */ color: rgb(129, 45, 183);
/* oklch */ color: oklch(49.0% 0.206 308.1);
Tailwind
colors: {
  custom: {
    50: '#ab6fcd',
    500: '#812db7',
    950: '#000000',
  },
}
SCSS
$custom: #812db7;
$custom-light: #ab6fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#812db7",
  "rgb": {
    "r": 129,
    "g": 45,
    "b": 183
  },
  "hsl": {
    "h": 276.522,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48971,
    "c": 0.20604,
    "h": 308.1
  },
  "luminance": 0.09963
}

Semantic roles & 50–950 ramp

primary
#812DB7
secondary
#97C878
accent
#E44483
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #812DB7

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

Preview Lab → · Contrast checker → · Palette generator →

#812DB7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva