#812EE3#812EE3

#812EE3 is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 52.7% C 0.248 H 297.7°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#812EE3
RGBrgb(129, 46, 227)
HSLhsl(268, 76%, 54%)
HSVhsv(268, 80%, 89%)
CMYKcmyk(43.2%, 79.7%, 0%, 11%)
CIE-LABlab(41.48, 67.80, -76.54)
CIE-LCHlch(41.48, 102.25, 311.53°)
OKLaboklab(52.66% 0.1151 -0.2192)
OKLCHoklch(52.66% 0.248 297.7)
XYZxyz(23.8918, 12.1667, 73.7478)
Luminance0.1217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812EE3 #90E32E
analogous
#2E35E3 #812EE3 #DB2EE3
triadic
#812EE3 #E3812E #2EE381
tetradic
#812EE3 #E32E35 #90E32E #2EE3DB
square
#812EE3 #E32E35 #90E32E #2EE3DB
split-complementary
#812EE3 #E3DB2E #35E32E
monochromatic
#471285 #6319BB #812EE3 #A264EA #C29AF1

Accessibility & contrast

On white

6.12
#812EE3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#812EE3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #812EE3
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812EE3#FFFFFF#000000##FFFFFF
##812EE31.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062E8
Deuteranopia (green-blind)
#0060E0
Tritanopia (blue-blind)
#67628A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #812ee3;
/* rgb */ color: rgb(129, 46, 227);
/* oklch */ color: oklch(52.7% 0.248 297.7);
Tailwind
colors: {
  custom: {
    50: '#ae71ed',
    500: '#812ee3',
    950: '#000000',
  },
}
SCSS
$custom: #812ee3;
$custom-light: #ae71ed;
$custom-dark: #000000;
JSON
{
  "hex": "#812ee3",
  "rgb": {
    "r": 129,
    "g": 46,
    "b": 227
  },
  "hsl": {
    "h": 267.514,
    "s": 76.371,
    "l": 53.529
  },
  "oklch": {
    "l": 0.52665,
    "c": 0.24761,
    "h": 297.7
  },
  "luminance": 0.12167
}

Semantic roles & 50–950 ramp

primary
#812EE3
secondary
#BADD90
accent
#F3359C
background
#FBF7FE
surface
#F6EDFD
border
#D0C8D5
text
#120816
muted
#817B84

Preview Lab

Preview with #812EE3

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

Preview Lab → · Contrast checker → · Palette generator →

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