#812FCF#812FCF

#812FCF is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 51.1% C 0.227 H 301.9°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#812FCF
RGBrgb(129, 47, 207)
HSLhsl(271, 63%, 50%)
HSVhsv(271, 77%, 81%)
CMYKcmyk(37.7%, 77.3%, 0%, 18.8%)
CIE-LABlab(39.92, 62.79, -67.60)
CIE-LCHlch(39.92, 92.27, 312.89°)
OKLaboklab(51.06% 0.12 -0.193)
OKLCHoklch(51.06% 0.227 301.9)
XYZxyz(21.3295, 11.2051, 60.0585)
Luminance0.1120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812FCF #7DCF2F
analogous
#312FCF #812FCF #CF2FCD
triadic
#812FCF #CF812F #2FCF81
tetradic
#812FCF #CF312F #7DCF2F #2FCDCF
square
#812FCF #CF312F #7DCF2F #2FCDCF
split-complementary
#812FCF #CDCF2F #2FCF31
monochromatic
#43186B #62249D #812FCF #9F60DB #BD92E6

Accessibility & contrast

On white

6.48
#812FCF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#812FCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #812FCF
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812FCF#FFFFFF#000000##FFFFFF
##812FCF1.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #812fcf;
/* rgb */ color: rgb(129, 47, 207);
/* oklch */ color: oklch(51.1% 0.227 301.9);
Tailwind
colors: {
  custom: {
    50: '#ac71df',
    500: '#812fcf',
    950: '#000000',
  },
}
SCSS
$custom: #812fcf;
$custom-light: #ac71df;
$custom-dark: #000000;
JSON
{
  "hex": "#812fcf",
  "rgb": {
    "r": 129,
    "g": 47,
    "b": 207
  },
  "hsl": {
    "h": 270.75,
    "s": 62.992,
    "l": 49.804
  },
  "oklch": {
    "l": 0.51064,
    "c": 0.22729,
    "h": 301.9
  },
  "luminance": 0.11205
}

Semantic roles & 50–950 ramp

primary
#812FCF
secondary
#ACD189
accent
#E64292
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #812FCF

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

Preview Lab → · Contrast checker → · Palette generator →

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