#812BB8#812BB8

#812BB8 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.9% C 0.209 H 308.0°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#812BB8
RGBrgb(129, 43, 184)
HSLhsl(277, 62%, 45%)
HSVhsv(277, 77%, 72%)
CMYKcmyk(29.9%, 76.6%, 0%, 27.8%)
CIE-LABlab(37.58, 59.16, -57.97)
CIE-LCHlch(37.58, 82.83, 315.58°)
OKLaboklab(48.86% 0.1288 -0.1647)
OKLCHoklch(48.86% 0.209 308)
XYZxyz(18.5671, 9.8559, 46.2624)
Luminance0.0986 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812BB8 #62B82B
analogous
#3B2BB8 #812BB8 #B82BA9
triadic
#812BB8 #B8812B #2BB881
tetradic
#812BB8 #B83B2B #62B82B #2BA9B8
square
#812BB8 #B83B2B #62B82B #2BA9B8
split-complementary
#812BB8 #A9B82B #2BB83B
monochromatic
#3B1455 #5E1F86 #812BB8 #9F4BD5 #BA7DE1

Accessibility & contrast

On white

7.07
#812BB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#812BB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812BB8
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812BB8#FFFFFF#000000##FFFFFF
##812BB81.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BC
Deuteranopia (green-blind)
#0059B5
Tritanopia (blue-blind)
#784E70
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #812bb8;
/* rgb */ color: rgb(129, 43, 184);
/* oklch */ color: oklch(48.9% 0.209 308.0);
Tailwind
colors: {
  custom: {
    50: '#ab6ece',
    500: '#812bb8',
    950: '#000000',
  },
}
SCSS
$custom: #812bb8;
$custom-light: #ab6ece;
$custom-dark: #000000;
JSON
{
  "hex": "#812bb8",
  "rgb": {
    "r": 129,
    "g": 43,
    "b": 184
  },
  "hsl": {
    "h": 276.596,
    "s": 62.115,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48859,
    "c": 0.2091,
    "h": 308
  },
  "luminance": 0.09856
}

Semantic roles & 50–950 ramp

primary
#812BB8
secondary
#96C976
accent
#E54382
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110814
muted
#807B82

Preview Lab

Preview with #812BB8

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

Preview Lab → · Contrast checker → · Palette generator →

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