#812DB2#812DB2

#812DB2 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.6% C 0.201 H 309.6°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#812DB2
RGBrgb(129, 45, 178)
HSLhsl(278, 60%, 44%)
HSVhsv(278, 75%, 70%)
CMYKcmyk(27.5%, 74.7%, 0%, 30.2%)
CIE-LABlab(37.41, 57.07, -54.71)
CIE-LCHlch(37.41, 79.06, 316.21°)
OKLaboklab(48.59% 0.1282 -0.1551)
OKLCHoklch(48.59% 0.201 309.6)
XYZxyz(18.0259, 9.7586, 43.0449)
Luminance0.0976 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812DB2 #5EB22D
analogous
#3F2DB2 #812DB2 #B22DA0
triadic
#812DB2 #B2812D #2DB281
tetradic
#812DB2 #B23F2D #5EB22D #2DA0B2
square
#812DB2 #B23F2D #5EB22D #2DA0B2
split-complementary
#812DB2 #A0B22D #2DB23F
monochromatic
#3A1450 #5E2181 #812DB2 #A04BD1 #BA7CDE

Accessibility & contrast

On white

7.11
#812DB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#812DB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812DB2
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812DB2#FFFFFF#000000##FFFFFF
##812DB21.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#0659AF
Tritanopia (blue-blind)
#7A4C6E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #812db2;
/* rgb */ color: rgb(129, 45, 178);
/* oklch */ color: oklch(48.6% 0.201 309.6);
Tailwind
colors: {
  custom: {
    50: '#aa6fca',
    500: '#812db2',
    950: '#000000',
  },
}
SCSS
$custom: #812db2;
$custom-light: #aa6fca;
$custom-dark: #000000;
JSON
{
  "hex": "#812db2",
  "rgb": {
    "r": 129,
    "g": 45,
    "b": 178
  },
  "hsl": {
    "h": 277.895,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.48594,
    "c": 0.20122,
    "h": 309.6
  },
  "luminance": 0.09758
}

Semantic roles & 50–950 ramp

primary
#812DB2
secondary
#93C675
accent
#E3457F
background
#FAF7FC
surface
#F5EDF8
border
#CFC8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #812DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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