#812BB5#812BB5

#812BB5 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.6% C 0.206 H 308.9°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#812BB5
RGBrgb(129, 43, 181)
HSLhsl(277, 62%, 44%)
HSVhsv(277, 76%, 71%)
CMYKcmyk(28.7%, 76.2%, 0%, 29%)
CIE-LABlab(37.36, 58.50, -56.57)
CIE-LCHlch(37.36, 81.38, 315.96°)
OKLaboklab(48.63% 0.1295 -0.1605)
OKLCHoklch(48.63% 0.206 308.9)
XYZxyz(18.2559, 9.7314, 44.6237)
Luminance0.0973 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812BB5 #5FB52B
analogous
#3C2BB5 #812BB5 #B52BA4
triadic
#812BB5 #B5812B #2BB581
tetradic
#812BB5 #B53C2B #5FB52B #2BA4B5
square
#812BB5 #B53C2B #5FB52B #2BA4B5
split-complementary
#812BB5 #A4B52B #2BB53C
monochromatic
#3B1452 #5E1F84 #812BB5 #A049D4 #BA7BE0

Accessibility & contrast

On white

7.13
#812BB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#812BB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812BB5
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812BB5#FFFFFF#000000##FFFFFF
##812BB51.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B9
Deuteranopia (green-blind)
#0059B2
Tritanopia (blue-blind)
#794D6F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #812bb5;
/* rgb */ color: rgb(129, 43, 181);
/* oklch */ color: oklch(48.6% 0.206 308.9);
Tailwind
colors: {
  custom: {
    50: '#ab6ecc',
    500: '#812bb5',
    950: '#000000',
  },
}
SCSS
$custom: #812bb5;
$custom-light: #ab6ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#812bb5",
  "rgb": {
    "r": 129,
    "g": 43,
    "b": 181
  },
  "hsl": {
    "h": 277.391,
    "s": 61.607,
    "l": 43.922
  },
  "oklch": {
    "l": 0.48628,
    "c": 0.20624,
    "h": 308.9
  },
  "luminance": 0.09731
}

Semantic roles & 50–950 ramp

primary
#812BB5
secondary
#94C874
accent
#E54380
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110813
muted
#807B82

Preview Lab

Preview with #812BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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