#815BA2#815BA2

#815BA2 is a mid, moderate violet. Relative luminance 0.148; OKLCH L 54.1% C 0.115 H 307.6°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#815BA2
RGBrgb(129, 91, 162)
HSLhsl(272, 28%, 50%)
HSVhsv(272, 44%, 64%)
CMYKcmyk(20.4%, 43.8%, 0%, 36.5%)
CIE-LABlab(45.30, 29.73, -32.61)
CIE-LCHlch(45.30, 44.13, 312.35°)
OKLaboklab(54.05% 0.07 -0.0907)
OKLCHoklch(54.05% 0.115 307.6)
XYZxyz(19.3147, 14.7581, 36.0065)
Luminance0.1476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#815BA2 #7CA25B
analogous
#5E5BA2 #815BA2 #A25B9F
triadic
#815BA2 #A2815B #5BA281
tetradic
#815BA2 #A25E5B #7CA25B #5B9FA2
square
#815BA2 #A25E5B #7CA25B #5B9FA2
split-complementary
#815BA2 #9FA25B #5BA25E
monochromatic
#432F54 #62457B #815BA2 #9F82B9 #BDA9CF

Accessibility & contrast

On white

5.31
#815BA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#815BA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #815BA2
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##815BA2#FFFFFF#000000##FFFFFF
##815BA21.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B6AA5
Deuteranopia (green-blind)
#546CA0
Tritanopia (blue-blind)
#7C6677
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #815ba2;
/* rgb */ color: rgb(129, 91, 162);
/* oklch */ color: oklch(54.1% 0.115 307.6);
Tailwind
colors: {
  custom: {
    50: '#a78abe',
    500: '#815ba2',
    950: '#000000',
  },
}
SCSS
$custom: #815ba2;
$custom-light: #a78abe;
$custom-dark: #000000;
JSON
{
  "hex": "#815ba2",
  "rgb": {
    "r": 129,
    "g": 91,
    "b": 162
  },
  "hsl": {
    "h": 272.113,
    "s": 28.063,
    "l": 49.608
  },
  "oklch": {
    "l": 0.54053,
    "c": 0.1146,
    "h": 307.6
  },
  "luminance": 0.14758
}

Semantic roles & 50–950 ramp

primary
#815BA2
secondary
#ABBD9C
accent
#C46390
background
#FAF8FB
surface
#F4F0F6
border
#CECBD0
text
#100C12
muted
#7F7D81

Preview Lab

Preview with #815BA2

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

Preview Lab → · Contrast checker → · Palette generator →

#815BA2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva