#812BB3#812BB3

#812BB3 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.5% C 0.204 H 309.5°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#812BB3
RGBrgb(129, 43, 179)
HSLhsl(278, 61%, 44%)
HSVhsv(278, 76%, 70%)
CMYKcmyk(27.9%, 76%, 0%, 29.8%)
CIE-LABlab(37.21, 58.07, -55.62)
CIE-LCHlch(37.21, 80.41, 316.23°)
OKLaboklab(48.48% 0.1299 -0.1578)
OKLCHoklch(48.48% 0.204 309.5)
XYZxyz(18.0522, 9.6499, 43.5507)
Luminance0.0965 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812BB3 #5DB32B
analogous
#3D2BB3 #812BB3 #B32BA1
triadic
#812BB3 #B3812B #2BB381
tetradic
#812BB3 #B33D2B #5DB32B #2BA1B3
square
#812BB3 #B33D2B #5DB32B #2BA1B3
split-complementary
#812BB3 #A1B32B #2BB33D
monochromatic
#3A1350 #5D1F82 #812BB3 #A048D3 #BA79DF

Accessibility & contrast

On white

7.17
#812BB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#812BB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812BB3
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812BB3#FFFFFF#000000##FFFFFF
##812BB31.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#0059B0
Tritanopia (blue-blind)
#7A4C6E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #812bb3;
/* rgb */ color: rgb(129, 43, 179);
/* oklch */ color: oklch(48.5% 0.204 309.5);
Tailwind
colors: {
  custom: {
    50: '#aa6ecb',
    500: '#812bb3',
    950: '#000000',
  },
}
SCSS
$custom: #812bb3;
$custom-light: #aa6ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#812bb3",
  "rgb": {
    "r": 129,
    "g": 43,
    "b": 179
  },
  "hsl": {
    "h": 277.941,
    "s": 61.261,
    "l": 43.529
  },
  "oklch": {
    "l": 0.48476,
    "c": 0.20434,
    "h": 309.5
  },
  "luminance": 0.0965
}

Semantic roles & 50–950 ramp

primary
#812BB3
secondary
#92C773
accent
#E4437F
background
#FAF6FC
surface
#F5ECF9
border
#CFC7D2
text
#110813
muted
#807B82

Preview Lab

Preview with #812BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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