#8048B2#8048B2

#8048B2 is a mid, vivid violet. Relative luminance 0.124; OKLCH L 51.8% C 0.165 H 305.8°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#8048B2
RGBrgb(128, 72, 178)
HSLhsl(272, 42%, 49%)
HSVhsv(272, 60%, 70%)
CMYKcmyk(28.1%, 59.6%, 0%, 30.2%)
CIE-LABlab(41.90, 44.06, -47.46)
CIE-LCHlch(41.90, 64.76, 312.87°)
OKLaboklab(51.8% 0.0966 -0.134)
OKLCHoklch(51.8% 0.165 305.8)
XYZxyz(19.2536, 12.4384, 43.4974)
Luminance0.1244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8048B2 #7AB248
analogous
#4B48B2 #8048B2 #B248AF
triadic
#8048B2 #B28048 #48B280
tetradic
#8048B2 #B24B48 #7AB248 #48AFB2
square
#8048B2 #B24B48 #7AB248 #48AFB2
split-complementary
#8048B2 #AFB248 #48B24B
monochromatic
#41255B #613686 #8048B2 #9E71C6 #BC9DD7

Accessibility & contrast

On white

6.02
#8048B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#8048B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8048B2
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8048B2#FFFFFF#000000##FFFFFF
##8048B21.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1961B5
Deuteranopia (green-blind)
#3363B0
Tritanopia (blue-blind)
#785D76
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8048b2;
/* rgb */ color: rgb(128, 72, 178);
/* oklch */ color: oklch(51.8% 0.165 305.8);
Tailwind
colors: {
  custom: {
    50: '#a87eca',
    500: '#8048b2',
    950: '#000000',
  },
}
SCSS
$custom: #8048b2;
$custom-light: #a87eca;
$custom-dark: #000000;
JSON
{
  "hex": "#8048b2",
  "rgb": {
    "r": 128,
    "g": 72,
    "b": 178
  },
  "hsl": {
    "h": 271.698,
    "s": 42.4,
    "l": 49.02
  },
  "oklch": {
    "l": 0.51798,
    "c": 0.16517,
    "h": 305.8
  },
  "luminance": 0.12438
}

Semantic roles & 50–950 ramp

primary
#8048B2
secondary
#A9C492
accent
#D25690
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #8048B2

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

Preview Lab → · Contrast checker → · Palette generator →

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