#812BB6#812BB6

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

Color values

HEX#812BB6
RGBrgb(129, 43, 182)
HSLhsl(277, 62%, 44%)
HSVhsv(277, 76%, 71%)
CMYKcmyk(29.1%, 76.4%, 0%, 28.6%)
CIE-LABlab(37.43, 58.72, -57.04)
CIE-LCHlch(37.43, 81.86, 315.83°)
OKLaboklab(48.71% 0.1293 -0.1619)
OKLCHoklch(48.71% 0.207 308.6)
XYZxyz(18.3589, 9.7726, 45.1661)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812BB6 #60B62B
analogous
#3B2BB6 #812BB6 #B62BA6
triadic
#812BB6 #B6812B #2BB681
tetradic
#812BB6 #B63B2B #60B62B #2BA6B6
square
#812BB6 #B63B2B #60B62B #2BA6B6
split-complementary
#812BB6 #A6B62B #2BB63B
monochromatic
#3B1453 #5E1F84 #812BB6 #A04AD4 #BA7BE0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##812BB6#FFFFFF#000000##FFFFFF
##812BB61.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)
#0055BA
Deuteranopia (green-blind)
#0059B3
Tritanopia (blue-blind)
#794D6F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #812bb6;
/* rgb */ color: rgb(129, 43, 182);
/* oklch */ color: oklch(48.7% 0.207 308.6);
Tailwind
colors: {
  custom: {
    50: '#ab6ecd',
    500: '#812bb6',
    950: '#000000',
  },
}
SCSS
$custom: #812bb6;
$custom-light: #ab6ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#812bb6",
  "rgb": {
    "r": 129,
    "g": 43,
    "b": 182
  },
  "hsl": {
    "h": 277.122,
    "s": 61.778,
    "l": 44.118
  },
  "oklch": {
    "l": 0.48705,
    "c": 0.20719,
    "h": 308.6
  },
  "luminance": 0.09772
}

Semantic roles & 50–950 ramp

primary
#812BB6
secondary
#94C875
accent
#E54381
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110814
muted
#807B82

Preview Lab

Preview with #812BB6

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

Preview Lab → · Contrast checker → · Palette generator →

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