#812BBD#812BBD

#812BBD is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.2% C 0.214 H 306.7°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#812BBD
RGBrgb(129, 43, 189)
HSLhsl(275, 63%, 45%)
HSVhsv(275, 77%, 74%)
CMYKcmyk(31.7%, 77.2%, 0%, 25.9%)
CIE-LABlab(37.97, 60.25, -60.29)
CIE-LCHlch(37.97, 85.24, 314.98°)
OKLaboklab(49.25% 0.1277 -0.1715)
OKLCHoklch(49.25% 0.214 306.7)
XYZxyz(19.1004, 10.0692, 49.0716)
Luminance0.1007 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812BBD #67BD2B
analogous
#382BBD #812BBD #BD2BB0
triadic
#812BBD #BD812B #2BBD81
tetradic
#812BBD #BD382B #67BD2B #2BB0BD
square
#812BBD #BD382B #67BD2B #2BB0BD
split-complementary
#812BBD #B0BD2B #2BBD38
monochromatic
#3D1459 #5F208B #812BBD #9F4ED7 #BA80E2

Accessibility & contrast

On white

6.97
#812BBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#812BBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #812BBD
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812BBD#FFFFFF#000000##FFFFFF
##812BBD1.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C1
Deuteranopia (green-blind)
#005ABA
Tritanopia (blue-blind)
#765073
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #812bbd;
/* rgb */ color: rgb(129, 43, 189);
/* oklch */ color: oklch(49.2% 0.214 306.7);
Tailwind
colors: {
  custom: {
    50: '#ab6ed2',
    500: '#812bbd',
    950: '#000000',
  },
}
SCSS
$custom: #812bbd;
$custom-light: #ab6ed2;
$custom-dark: #000000;
JSON
{
  "hex": "#812bbd",
  "rgb": {
    "r": 129,
    "g": 43,
    "b": 189
  },
  "hsl": {
    "h": 275.342,
    "s": 62.931,
    "l": 45.49
  },
  "oklch": {
    "l": 0.49248,
    "c": 0.21385,
    "h": 306.7
  },
  "luminance": 0.10069
}

Semantic roles & 50–950 ramp

primary
#812BBD
secondary
#9BCB79
accent
#E64285
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #812BBD

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

Preview Lab → · Contrast checker → · Palette generator →

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