#812EBA#812EBA

#812EBA is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.3% C 0.208 H 307.2°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#812EBA
RGBrgb(129, 46, 186)
HSLhsl(276, 60%, 45%)
HSVhsv(276, 75%, 73%)
CMYKcmyk(30.6%, 75.3%, 0%, 27.1%)
CIE-LABlab(38.14, 58.43, -58.25)
CIE-LCHlch(38.14, 82.51, 315.09°)
OKLaboklab(49.3% 0.1258 -0.1655)
OKLCHoklch(49.3% 0.208 307.2)
XYZxyz(18.8913, 10.1665, 47.4120)
Luminance0.1017 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812EBA #67BA2E
analogous
#3B2EBA #812EBA #BA2EAD
triadic
#812EBA #BA812E #2EBA81
tetradic
#812EBA #BA3B2E #67BA2E #2EADBA
square
#812EBA #BA3B2E #67BA2E #2EADBA
split-complementary
#812EBA #ADBA2E #2EBA3B
monochromatic
#3D1658 #5F2289 #812EBA #9F51D4 #BA82E0

Accessibility & contrast

On white

6.92
#812EBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#812EBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #812EBA
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812EBA#FFFFFF#000000##FFFFFF
##812EBA1.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BE
Deuteranopia (green-blind)
#005AB7
Tritanopia (blue-blind)
#775072
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #812eba;
/* rgb */ color: rgb(129, 46, 186);
/* oklch */ color: oklch(49.3% 0.208 307.2);
Tailwind
colors: {
  custom: {
    50: '#ab6fd0',
    500: '#812eba',
    950: '#000000',
  },
}
SCSS
$custom: #812eba;
$custom-light: #ab6fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#812eba",
  "rgb": {
    "r": 129,
    "g": 46,
    "b": 186
  },
  "hsl": {
    "h": 275.571,
    "s": 60.345,
    "l": 45.49
  },
  "oklch": {
    "l": 0.49298,
    "c": 0.20787,
    "h": 307.2
  },
  "luminance": 0.10166
}

Semantic roles & 50–950 ramp

primary
#812EBA
secondary
#9BC97B
accent
#E34485
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #812EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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