#8048BA#8048BA

#8048BA is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.3% C 0.174 H 303.5°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#8048BA
RGBrgb(128, 72, 186)
HSLhsl(269, 45%, 51%)
HSVhsv(269, 61%, 73%)
CMYKcmyk(31.2%, 61.3%, 0%, 27.1%)
CIE-LABlab(42.41, 46.01, -51.35)
CIE-LCHlch(42.41, 68.95, 311.86°)
OKLaboklab(52.33% 0.0964 -0.1454)
OKLCHoklch(52.33% 0.174 303.5)
XYZxyz(20.0804, 12.7691, 47.8517)
Luminance0.1277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8048BA #82BA48
analogous
#4849BA #8048BA #B948BA
triadic
#8048BA #BA8048 #48BA80
tetradic
#8048BA #BA4849 #82BA48 #48BAB9
square
#8048BA #BA4849 #82BA48 #48BAB9
split-complementary
#8048BA #BAB948 #49BA48
monochromatic
#432562 #62368F #8048BA #9F74CB #BEA1DC

Accessibility & contrast

On white

5.91
#8048BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#8048BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8048BA
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8048BA#FFFFFF#000000##FFFFFF
##8048BA1.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0263BE
Deuteranopia (green-blind)
#2A64B7
Tritanopia (blue-blind)
#75607A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8048ba;
/* rgb */ color: rgb(128, 72, 186);
/* oklch */ color: oklch(52.3% 0.174 303.5);
Tailwind
colors: {
  custom: {
    50: '#a97ecf',
    500: '#8048ba',
    950: '#000000',
  },
}
SCSS
$custom: #8048ba;
$custom-light: #a97ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#8048ba",
  "rgb": {
    "r": 128,
    "g": 72,
    "b": 186
  },
  "hsl": {
    "h": 269.474,
    "s": 45.238,
    "l": 50.588
  },
  "oklch": {
    "l": 0.52332,
    "c": 0.17445,
    "h": 303.5
  },
  "luminance": 0.12769
}

Semantic roles & 50–950 ramp

primary
#8048BA
secondary
#AFC896
accent
#D55395
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #8048BA

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

Preview Lab → · Contrast checker → · Palette generator →

#8048BA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva