#78238B#78238B

#78238B is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.6% C 0.173 H 319.6°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#78238B
RGBrgb(120, 35, 139)
HSLhsl(289, 60%, 34%)
HSVhsv(289, 75%, 55%)
CMYKcmyk(13.7%, 74.8%, 0%, 45.5%)
CIE-LABlab(31.94, 51.01, -39.97)
CIE-LCHlch(31.94, 64.80, 321.92°)
OKLaboklab(43.58% 0.1316 -0.1121)
OKLCHoklch(43.58% 0.173 319.6)
XYZxyz(13.0064, 7.0599, 25.0987)
Luminance0.0706 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78238B #368B23
analogous
#44238B #78238B #8B236A
triadic
#78238B #8B7823 #238B78
tetradic
#78238B #8B4423 #368B23 #236A8B
square
#78238B #8B4423 #368B23 #236A8B
split-complementary
#78238B #6A8B23 #238B44
monochromatic
#240A29 #4E175A #78238B #A22FBC #BD54D4

Accessibility & contrast

On white

8.71
#78238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#78238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78238B
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78238B#FFFFFF#000000##FFFFFF
##78238B1.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458E
Deuteranopia (green-blind)
#2B4E89
Tritanopia (blue-blind)
#783855
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #78238b;
/* rgb */ color: rgb(120, 35, 139);
/* oklch */ color: oklch(43.6% 0.173 319.6);
Tailwind
colors: {
  custom: {
    50: '#a267ad',
    500: '#78238b',
    950: '#000000',
  },
}
SCSS
$custom: #78238b;
$custom-light: #a267ad;
$custom-dark: #000000;
JSON
{
  "hex": "#78238b",
  "rgb": {
    "r": 120,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 289.038,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.43576,
    "c": 0.17286,
    "h": 319.6
  },
  "luminance": 0.07059
}

Semantic roles & 50–950 ramp

primary
#78238B
secondary
#64B852
accent
#E34562
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #78238B

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

Preview Lab → · Contrast checker → · Palette generator →

#78238B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva