#8048AF#8048AF

#8048AF is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.6% C 0.162 H 306.7°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#8048AF
RGBrgb(128, 72, 175)
HSLhsl(273, 42%, 48%)
HSVhsv(273, 59%, 69%)
CMYKcmyk(26.9%, 58.9%, 0%, 31.4%)
CIE-LABlab(41.72, 43.34, -45.99)
CIE-LCHlch(41.72, 63.19, 313.30°)
OKLaboklab(51.6% 0.0966 -0.1297)
OKLCHoklch(51.6% 0.162 306.7)
XYZxyz(18.9557, 12.3193, 41.9284)
Luminance0.1232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8048AF #77AF48
analogous
#4C48AF #8048AF #AF48AA
triadic
#8048AF #AF8048 #48AF80
tetradic
#8048AF #AF4C48 #77AF48 #48AAAF
square
#8048AF #AF4C48 #77AF48 #48AAAF
split-complementary
#8048AF #AAAF48 #48AF4C
monochromatic
#412458 #603684 #8048AF #9E70C4 #BB9BD6

Accessibility & contrast

On white

6.06
#8048AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#8048AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8048AF
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8048AF#FFFFFF#000000##FFFFFF
##8048AF1.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E60B2
Deuteranopia (green-blind)
#3663AD
Tritanopia (blue-blind)
#785C74
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8048af;
/* rgb */ color: rgb(128, 72, 175);
/* oklch */ color: oklch(51.6% 0.162 306.7);
Tailwind
colors: {
  custom: {
    50: '#a87ec7',
    500: '#8048af',
    950: '#000000',
  },
}
SCSS
$custom: #8048af;
$custom-light: #a87ec7;
$custom-dark: #000000;
JSON
{
  "hex": "#8048af",
  "rgb": {
    "r": 128,
    "g": 72,
    "b": 175
  },
  "hsl": {
    "h": 272.621,
    "s": 41.7,
    "l": 48.431
  },
  "oklch": {
    "l": 0.51603,
    "c": 0.16168,
    "h": 306.7
  },
  "luminance": 0.12319
}

Semantic roles & 50–950 ramp

primary
#8048AF
secondary
#A7C290
accent
#D2568F
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #8048AF

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

Preview Lab → · Contrast checker → · Palette generator →

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