#812CE2#812CE2

#812CE2 is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 52.4% C 0.248 H 298.0°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#812CE2
RGBrgb(129, 44, 226)
HSLhsl(268, 76%, 53%)
HSVhsv(268, 81%, 89%)
CMYKcmyk(42.9%, 80.5%, 0%, 11.4%)
CIE-LABlab(41.15, 68.27, -76.51)
CIE-LCHlch(41.15, 102.54, 311.74°)
OKLaboklab(52.41% 0.1168 -0.2191)
OKLCHoklch(52.41% 0.248 298)
XYZxyz(23.6778, 11.9591, 72.9976)
Luminance0.1196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812CE2 #8DE22C
analogous
#2C32E2 #812CE2 #DC2CE2
triadic
#812CE2 #E2812C #2CE281
tetradic
#812CE2 #E22C32 #8DE22C #2CE2DC
square
#812CE2 #E22C32 #8DE22C #2CE2DC
split-complementary
#812CE2 #E2DC2C #32E22C
monochromatic
#461282 #6319B8 #812CE2 #A162E9 #C198F1

Accessibility & contrast

On white

6.19
#812CE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#812CE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #812CE2
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812CE2#FFFFFF#000000##FFFFFF
##812CE21.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061E7
Deuteranopia (green-blind)
#005FDF
Tritanopia (blue-blind)
#686189
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #812ce2;
/* rgb */ color: rgb(129, 44, 226);
/* oklch */ color: oklch(52.4% 0.248 298.0);
Tailwind
colors: {
  custom: {
    50: '#ae70ec',
    500: '#812ce2',
    950: '#000000',
  },
}
SCSS
$custom: #812ce2;
$custom-light: #ae70ec;
$custom-dark: #000000;
JSON
{
  "hex": "#812ce2",
  "rgb": {
    "r": 129,
    "g": 44,
    "b": 226
  },
  "hsl": {
    "h": 268.022,
    "s": 75.833,
    "l": 52.941
  },
  "oklch": {
    "l": 0.5241,
    "c": 0.24828,
    "h": 298
  },
  "luminance": 0.11959
}

Semantic roles & 50–950 ramp

primary
#812CE2
secondary
#B7DC8E
accent
#F2359A
background
#FBF7FE
surface
#F6EDFD
border
#D0C8D5
text
#120816
muted
#817B84

Preview Lab

Preview with #812CE2

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

Preview Lab → · Contrast checker → · Palette generator →

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