#8048DB#8048DB

#8048DB is a mid, highly saturated violet. Relative luminance 0.143; OKLCH L 54.7% C 0.212 H 296.1°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#8048DB
RGBrgb(128, 72, 219)
HSLhsl(263, 67%, 57%)
HSVhsv(263, 67%, 86%)
CMYKcmyk(41.6%, 67.1%, 0%, 14.1%)
CIE-LABlab(44.71, 54.34, -66.70)
CIE-LCHlch(44.71, 86.03, 309.17°)
OKLaboklab(54.72% 0.0934 -0.1905)
OKLCHoklch(54.72% 0.212 296.1)
XYZxyz(24.0023, 14.3379, 68.5070)
Luminance0.1434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8048DB #A3DB48
analogous
#485ADB #8048DB #C948DB
triadic
#8048DB #DB8048 #48DB80
tetradic
#8048DB #DB485A #A3DB48 #48DBC9
square
#8048DB #DB485A #A3DB48 #48DBC9
split-complementary
#8048DB #DBC948 #5ADB48
monochromatic
#471C8D #6126C0 #8048DB #A37BE5 #C7AEEF

Accessibility & contrast

On white

5.43
#8048DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#8048DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8048DB
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8048DB#FFFFFF#000000##FFFFFF
##8048DB1.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDF
Deuteranopia (green-blind)
#0068D8
Tritanopia (blue-blind)
#686B8C
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8048db;
/* rgb */ color: rgb(128, 72, 219);
/* oklch */ color: oklch(54.7% 0.212 296.1);
Tailwind
colors: {
  custom: {
    50: '#ac7fe7',
    500: '#8048db',
    950: '#000000',
  },
}
SCSS
$custom: #8048db;
$custom-light: #ac7fe7;
$custom-dark: #000000;
JSON
{
  "hex": "#8048db",
  "rgb": {
    "r": 128,
    "g": 72,
    "b": 219
  },
  "hsl": {
    "h": 262.857,
    "s": 67.123,
    "l": 57.059
  },
  "oklch": {
    "l": 0.5472,
    "c": 0.21218,
    "h": 296.1
  },
  "luminance": 0.14338
}

Semantic roles & 50–950 ramp

primary
#8048DB
secondary
#C7DDA2
accent
#EA3EA8
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #8048DB

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

Preview Lab → · Contrast checker → · Palette generator →

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