#812DBA#812DBA

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

Color values

HEX#812DBA
RGBrgb(129, 45, 186)
HSLhsl(276, 61%, 45%)
HSVhsv(276, 76%, 73%)
CMYKcmyk(30.6%, 75.8%, 0%, 27.1%)
CIE-LABlab(38.00, 58.83, -58.47)
CIE-LCHlch(38.00, 82.94, 315.18°)
OKLaboklab(49.2% 0.1267 -0.1662)
OKLCHoklch(49.2% 0.209 307.3)
XYZxyz(18.8527, 10.0893, 47.3991)
Luminance0.1009 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812DBA #66BA2D
analogous
#3B2DBA #812DBA #BA2DAC
triadic
#812DBA #BA812D #2DBA81
tetradic
#812DBA #BA3B2D #66BA2D #2DACBA
square
#812DBA #BA3B2D #66BA2D #2DACBA
split-complementary
#812DBA #ACBA2D #2DBA3B
monochromatic
#3D1557 #5F2189 #812DBA #9F50D5 #BA81E0

Accessibility & contrast

On white

6.96
#812DBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#812DBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #812DBA
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812DBA#FFFFFF#000000##FFFFFF
##812DBA1.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BE
Deuteranopia (green-blind)
#005AB7
Tritanopia (blue-blind)
#775072
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #812dba;
/* rgb */ color: rgb(129, 45, 186);
/* oklch */ color: oklch(49.2% 0.209 307.3);
Tailwind
colors: {
  custom: {
    50: '#ab6fd0',
    500: '#812dba',
    950: '#000000',
  },
}
SCSS
$custom: #812dba;
$custom-light: #ab6fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#812dba",
  "rgb": {
    "r": 129,
    "g": 45,
    "b": 186
  },
  "hsl": {
    "h": 275.745,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.49202,
    "c": 0.20893,
    "h": 307.3
  },
  "luminance": 0.10089
}

Semantic roles & 50–950 ramp

primary
#812DBA
secondary
#9AC979
accent
#E44485
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #812DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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