#502385#502385

#502385 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.7% C 0.154 H 299.9°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#502385
RGBrgb(80, 35, 133)
HSLhsl(268, 58%, 33%)
HSVhsv(268, 74%, 52%)
CMYKcmyk(39.8%, 73.7%, 0%, 47.8%)
CIE-LABlab(25.57, 41.25, -46.83)
CIE-LCHlch(25.57, 62.40, 311.37°)
OKLaboklab(37.67% 0.0769 -0.1336)
OKLCHoklch(37.67% 0.154 299.9)
XYZxyz(8.1419, 4.6009, 22.6449)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502385 #588523
analogous
#232785 #502385 #812385
triadic
#502385 #855023 #238550
tetradic
#502385 #852327 #588523 #238581
square
#502385 #852327 #588523 #238581
split-complementary
#502385 #858123 #278523
monochromatic
#160924 #331655 #502385 #6D30B5 #8C51D1

Accessibility & contrast

On white

10.94
#502385 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#502385 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502385
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502385#FFFFFF#000000##FFFFFF
##5023851.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C88
Deuteranopia (green-blind)
#003C83
Tritanopia (blue-blind)
#443B51
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #502385;
/* rgb */ color: rgb(80, 35, 133);
/* oklch */ color: oklch(37.7% 0.154 299.9);
Tailwind
colors: {
  custom: {
    50: '#8662a9',
    500: '#502385',
    950: '#000000',
  },
}
SCSS
$custom: #502385;
$custom-light: #8662a9;
$custom-dark: #000000;
JSON
{
  "hex": "#502385",
  "rgb": {
    "r": 80,
    "g": 35,
    "b": 133
  },
  "hsl": {
    "h": 267.551,
    "s": 58.333,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37669,
    "c": 0.15418,
    "h": 299.9
  },
  "luminance": 0.04601
}

Semantic roles & 50–950 ramp

primary
#502385
secondary
#86B54F
accent
#E2469A
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #502385

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

Preview Lab → · Contrast checker → · Palette generator →

#502385 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva