#8047B2#8047B2

#8047B2 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.7% C 0.167 H 305.9°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#8047B2
RGBrgb(128, 71, 178)
HSLhsl(272, 43%, 49%)
HSVhsv(272, 60%, 70%)
CMYKcmyk(28.1%, 60.1%, 0%, 30.2%)
CIE-LABlab(41.70, 44.59, -47.78)
CIE-LCHlch(41.70, 65.36, 313.02°)
OKLaboklab(51.65% 0.0978 -0.1349)
OKLCHoklch(51.65% 0.167 305.9)
XYZxyz(19.1895, 12.3102, 43.4760)
Luminance0.1231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8047B2 #79B247
analogous
#4B47B2 #8047B2 #B247AF
triadic
#8047B2 #B28047 #47B280
tetradic
#8047B2 #B24B47 #79B247 #47AFB2
square
#8047B2 #B24B47 #79B247 #47AFB2
split-complementary
#8047B2 #AFB247 #47B24B
monochromatic
#41245B #613686 #8047B2 #9E70C6 #BC9CD7

Accessibility & contrast

On white

6.07
#8047B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#8047B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8047B2
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8047B2#FFFFFF#000000##FFFFFF
##8047B21.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1661B5
Deuteranopia (green-blind)
#3263B0
Tritanopia (blue-blind)
#785C76
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8047b2;
/* rgb */ color: rgb(128, 71, 178);
/* oklch */ color: oklch(51.7% 0.167 305.9);
Tailwind
colors: {
  custom: {
    50: '#a87dca',
    500: '#8047b2',
    950: '#000000',
  },
}
SCSS
$custom: #8047b2;
$custom-light: #a87dca;
$custom-dark: #000000;
JSON
{
  "hex": "#8047b2",
  "rgb": {
    "r": 128,
    "g": 71,
    "b": 178
  },
  "hsl": {
    "h": 271.963,
    "s": 42.972,
    "l": 48.824
  },
  "oklch": {
    "l": 0.51653,
    "c": 0.16667,
    "h": 305.9
  },
  "luminance": 0.1231
}

Semantic roles & 50–950 ramp

primary
#8047B2
secondary
#A9C491
accent
#D35590
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #8047B2

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

Preview Lab → · Contrast checker → · Palette generator →

#8047B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva