#812FB8#812FB8

#812FB8 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.2% C 0.205 H 307.7°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#812FB8
RGBrgb(129, 47, 184)
HSLhsl(276, 59%, 45%)
HSVhsv(276, 74%, 72%)
CMYKcmyk(29.9%, 74.5%, 0%, 27.8%)
CIE-LABlab(38.13, 57.59, -57.08)
CIE-LCHlch(38.13, 81.09, 315.25°)
OKLaboklab(49.25% 0.1252 -0.1621)
OKLCHoklch(49.25% 0.205 307.7)
XYZxyz(18.7197, 10.1611, 46.3132)
Luminance0.1016 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812FB8 #66B82F
analogous
#3C2FB8 #812FB8 #B82FAB
triadic
#812FB8 #B8812F #2FB881
tetradic
#812FB8 #B83C2F #66B82F #2FABB8
square
#812FB8 #B83C2F #66B82F #2FABB8
split-complementary
#812FB8 #ABB82F #2FB83C
monochromatic
#3D1657 #5F2387 #812FB8 #9F52D3 #BA82DF

Accessibility & contrast

On white

6.93
#812FB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#812FB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #812FB8
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812FB8#FFFFFF#000000##FFFFFF
##812FB81.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BC
Deuteranopia (green-blind)
#005AB5
Tritanopia (blue-blind)
#785071
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #812fb8;
/* rgb */ color: rgb(129, 47, 184);
/* oklch */ color: oklch(49.2% 0.205 307.7);
Tailwind
colors: {
  custom: {
    50: '#ab70ce',
    500: '#812fb8',
    950: '#000000',
  },
}
SCSS
$custom: #812fb8;
$custom-light: #ab70ce;
$custom-dark: #000000;
JSON
{
  "hex": "#812fb8",
  "rgb": {
    "r": 129,
    "g": 47,
    "b": 184
  },
  "hsl": {
    "h": 275.912,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.49245,
    "c": 0.20484,
    "h": 307.7
  },
  "luminance": 0.10161
}

Semantic roles & 50–950 ramp

primary
#812FB8
secondary
#9AC87B
accent
#E24584
background
#FAF7FC
surface
#F5EDF9
border
#CFC8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #812FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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