#812BCC#812BCC

#812BCC is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.5% C 0.228 H 302.9°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#812BCC
RGBrgb(129, 43, 204)
HSLhsl(272, 65%, 48%)
HSVhsv(272, 79%, 80%)
CMYKcmyk(36.8%, 78.9%, 0%, 20%)
CIE-LABlab(39.16, 63.60, -67.10)
CIE-LCHlch(39.16, 92.45, 313.46°)
OKLaboklab(50.46% 0.124 -0.1915)
OKLCHoklch(50.46% 0.228 302.9)
XYZxyz(20.8136, 10.7545, 58.0943)
Luminance0.1076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812BCC #76CC2B
analogous
#312BCC #812BCC #CC2BC6
triadic
#812BCC #CC812B #2BCC81
tetradic
#812BCC #CC312B #76CC2B #2BC6CC
square
#812BCC #CC312B #76CC2B #2BC6CC
split-complementary
#812BCC #C6CC2B #2BCC31
monochromatic
#411667 #612099 #812BCC #9F58DC #BC8BE7

Accessibility & contrast

On white

6.66
#812BCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#812BCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #812BCC
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812BCC#FFFFFF#000000##FFFFFF
##812BCC1.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD0
Deuteranopia (green-blind)
#005CC9
Tritanopia (blue-blind)
#71577C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #812bcc;
/* rgb */ color: rgb(129, 43, 204);
/* oklch */ color: oklch(50.5% 0.228 302.9);
Tailwind
colors: {
  custom: {
    50: '#ac6fdd',
    500: '#812bcc',
    950: '#000000',
  },
}
SCSS
$custom: #812bcc;
$custom-light: #ac6fdd;
$custom-dark: #000000;
JSON
{
  "hex": "#812bcc",
  "rgb": {
    "r": 129,
    "g": 43,
    "b": 204
  },
  "hsl": {
    "h": 272.05,
    "s": 65.182,
    "l": 48.431
  },
  "oklch": {
    "l": 0.50458,
    "c": 0.22814,
    "h": 302.9
  },
  "luminance": 0.10755
}

Semantic roles & 50–950 ramp

primary
#812BCC
secondary
#A7D082
accent
#E8408E
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #812BCC

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

Preview Lab → · Contrast checker → · Palette generator →

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