#815FB2#815FB2

#815FB2 is a mid, vivid violet. Relative luminance 0.161; OKLCH L 55.6% C 0.129 H 301.2°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#815FB2
RGBrgb(129, 95, 178)
HSLhsl(265, 35%, 54%)
HSVhsv(265, 47%, 70%)
CMYKcmyk(27.5%, 46.6%, 0%, 30.2%)
CIE-LABlab(47.06, 31.32, -39.25)
CIE-LCHlch(47.06, 50.21, 308.59°)
OKLaboklab(55.64% 0.0667 -0.11)
OKLCHoklch(55.64% 0.129 301.2)
XYZxyz(21.1795, 16.0658, 44.0961)
Luminance0.1607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#815FB2 #90B25F
analogous
#5F66B2 #815FB2 #AA5FB2
triadic
#815FB2 #B2815F #5FB281
tetradic
#815FB2 #B25F66 #90B25F #5FB2AA
square
#815FB2 #B25F66 #90B25F #5FB2AA
split-complementary
#815FB2 #B2AA5F #66B25F
monochromatic
#473166 #63458F #815FB2 #A288C6 #C2B2DA

Accessibility & contrast

On white

4.98
#815FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#815FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #815FB2
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##815FB2#FFFFFF#000000##FFFFFF
##815FB21.004.984.214.98
#FFFFFF4.981.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#476FB5
Deuteranopia (green-blind)
#4F6FB0
Tritanopia (blue-blind)
#786E80
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #815fb2;
/* rgb */ color: rgb(129, 95, 178);
/* oklch */ color: oklch(55.6% 0.129 301.2);
Tailwind
colors: {
  custom: {
    50: '#a88dc9',
    500: '#815fb2',
    950: '#000000',
  },
}
SCSS
$custom: #815fb2;
$custom-light: #a88dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#815fb2",
  "rgb": {
    "r": 129,
    "g": 95,
    "b": 178
  },
  "hsl": {
    "h": 264.578,
    "s": 35.021,
    "l": 53.529
  },
  "oklch": {
    "l": 0.55639,
    "c": 0.12867,
    "h": 301.2
  },
  "luminance": 0.16066
}

Semantic roles & 50–950 ramp

primary
#815FB2
secondary
#BAC8A5
accent
#CB5D9E
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#100C13
muted
#7F7D82

Preview Lab

Preview with #815FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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