#812ECF#812ECF

#812ECF is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 51.0% C 0.228 H 302.0°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#812ECF
RGBrgb(129, 46, 207)
HSLhsl(271, 64%, 50%)
HSVhsv(271, 78%, 81%)
CMYKcmyk(37.7%, 77.8%, 0%, 18.8%)
CIE-LABlab(39.79, 63.17, -67.82)
CIE-LCHlch(39.79, 92.68, 312.97°)
OKLaboklab(50.97% 0.1208 -0.1936)
OKLCHoklch(50.97% 0.228 302)
XYZxyz(21.2900, 11.1260, 60.0453)
Luminance0.1113 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812ECF #7CCF2E
analogous
#312ECF #812ECF #CF2ECC
triadic
#812ECF #CF812E #2ECF81
tetradic
#812ECF #CF312E #7CCF2E #2ECCCF
square
#812ECF #CF312E #7CCF2E #2ECCCF
split-complementary
#812ECF #CCCF2E #2ECF31
monochromatic
#43186B #62239D #812ECF #9F5FDB #BD91E7

Accessibility & contrast

On white

6.51
#812ECF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#812ECF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #812ECF
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812ECF#FFFFFF#000000##FFFFFF
##812ECF1.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD3
Deuteranopia (green-blind)
#005DCC
Tritanopia (blue-blind)
#70597E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #812ecf;
/* rgb */ color: rgb(129, 46, 207);
/* oklch */ color: oklch(51.0% 0.228 302.0);
Tailwind
colors: {
  custom: {
    50: '#ac70df',
    500: '#812ecf',
    950: '#000000',
  },
}
SCSS
$custom: #812ecf;
$custom-light: #ac70df;
$custom-dark: #000000;
JSON
{
  "hex": "#812ecf",
  "rgb": {
    "r": 129,
    "g": 46,
    "b": 207
  },
  "hsl": {
    "h": 270.932,
    "s": 63.636,
    "l": 49.608
  },
  "oklch": {
    "l": 0.50972,
    "c": 0.22825,
    "h": 302
  },
  "luminance": 0.11126
}

Semantic roles & 50–950 ramp

primary
#812ECF
secondary
#ABD188
accent
#E74191
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #812ECF

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

Preview Lab → · Contrast checker → · Palette generator →

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