#8048BF#8048BF

#8048BF is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.7% C 0.180 H 302.2°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#8048BF
RGBrgb(128, 72, 191)
HSLhsl(268, 48%, 52%)
HSVhsv(268, 62%, 75%)
CMYKcmyk(33%, 62.3%, 0%, 25.1%)
CIE-LABlab(42.74, 47.25, -53.74)
CIE-LCHlch(42.74, 71.56, 311.32°)
OKLaboklab(52.68% 0.0962 -0.1524)
OKLCHoklch(52.68% 0.18 302.2)
XYZxyz(20.6212, 12.9855, 50.7002)
Luminance0.1299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8048BF #87BF48
analogous
#484CBF #8048BF #BB48BF
triadic
#8048BF #BF8048 #48BF80
tetradic
#8048BF #BF484C #87BF48 #48BFBB
square
#8048BF #BF484C #87BF48 #48BFBB
split-complementary
#8048BF #BFBB48 #4CBF48
monochromatic
#442468 #623496 #8048BF #9F75CF #BFA3DF

Accessibility & contrast

On white

5.84
#8048BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#8048BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8048BF
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8048BF#FFFFFF#000000##FFFFFF
##8048BF1.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C3
Deuteranopia (green-blind)
#2264BC
Tritanopia (blue-blind)
#73617D
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8048bf;
/* rgb */ color: rgb(128, 72, 191);
/* oklch */ color: oklch(52.7% 0.180 302.2);
Tailwind
colors: {
  custom: {
    50: '#a97ed3',
    500: '#8048bf',
    950: '#000000',
  },
}
SCSS
$custom: #8048bf;
$custom-light: #a97ed3;
$custom-dark: #000000;
JSON
{
  "hex": "#8048bf",
  "rgb": {
    "r": 128,
    "g": 72,
    "b": 191
  },
  "hsl": {
    "h": 268.235,
    "s": 48.178,
    "l": 51.569
  },
  "oklch": {
    "l": 0.52675,
    "c": 0.18023,
    "h": 302.2
  },
  "luminance": 0.12986
}

Semantic roles & 50–950 ramp

primary
#8048BF
secondary
#B3CC97
accent
#D85098
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #8048BF

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

Preview Lab → · Contrast checker → · Palette generator →

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