#812EBB#812EBB

#812EBB is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.4% C 0.209 H 307.0°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#812EBB
RGBrgb(129, 46, 187)
HSLhsl(275, 61%, 46%)
HSVhsv(275, 75%, 73%)
CMYKcmyk(31%, 75.4%, 0%, 26.7%)
CIE-LABlab(38.22, 58.66, -58.71)
CIE-LCHlch(38.22, 82.99, 314.97°)
OKLaboklab(49.38% 0.1256 -0.1669)
OKLCHoklch(49.38% 0.209 307)
XYZxyz(18.9980, 10.2092, 47.9738)
Luminance0.1021 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812EBB #68BB2E
analogous
#3A2EBB #812EBB #BB2EAE
triadic
#812EBB #BB812E #2EBB81
tetradic
#812EBB #BB3A2E #68BB2E #2EAEBB
square
#812EBB #BB3A2E #68BB2E #2EAEBB
split-complementary
#812EBB #AEBB2E #2EBB3A
monochromatic
#3D1659 #5F228A #812EBB #9F52D4 #BA83E0

Accessibility & contrast

On white

6.90
#812EBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#812EBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #812EBB
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812EBB#FFFFFF#000000##FFFFFF
##812EBB1.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BF
Deuteranopia (green-blind)
#005AB8
Tritanopia (blue-blind)
#775173
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #812ebb;
/* rgb */ color: rgb(129, 46, 187);
/* oklch */ color: oklch(49.4% 0.209 307.0);
Tailwind
colors: {
  custom: {
    50: '#ab6fd0',
    500: '#812ebb',
    950: '#000000',
  },
}
SCSS
$custom: #812ebb;
$custom-light: #ab6fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#812ebb",
  "rgb": {
    "r": 129,
    "g": 46,
    "b": 187
  },
  "hsl": {
    "h": 275.319,
    "s": 60.515,
    "l": 45.686
  },
  "oklch": {
    "l": 0.49375,
    "c": 0.20883,
    "h": 307
  },
  "luminance": 0.10209
}

Semantic roles & 50–950 ramp

primary
#812EBB
secondary
#9BCA7B
accent
#E44486
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #812EBB

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

Preview Lab → · Contrast checker → · Palette generator →

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