#502DBC#502DBC

#502DBC is a dark, highly saturated violet. Relative luminance 0.072; OKLCH L 43.9% C 0.207 H 285.3°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#502DBC
RGBrgb(80, 45, 188)
HSLhsl(255, 61%, 46%)
HSVhsv(255, 76%, 74%)
CMYKcmyk(57.4%, 76.1%, 0%, 26.3%)
CIE-LABlab(32.29, 51.59, -69.24)
CIE-LCHlch(32.29, 86.34, 306.69°)
OKLaboklab(43.93% 0.0547 -0.1994)
OKLCHoklch(43.93% 0.207 285.3)
XYZxyz(13.3210, 7.2123, 48.2574)
Luminance0.0721 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502DBC #99BC2D
analogous
#2D52BC #502DBC #972DBC
triadic
#502DBC #BC502D #2DBC50
tetradic
#502DBC #BC2D52 #99BC2D #2DBC97
square
#502DBC #BC2D52 #99BC2D #2DBC97
split-complementary
#502DBC #BC972D #52BC2D
monochromatic
#261559 #3B218B #502DBC #7151D5 #9982E1

Accessibility & contrast

On white

8.60
#502DBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#502DBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502DBC
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502DBC#FFFFFF#000000##FFFFFF
##502DBC1.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C0
Deuteranopia (green-blind)
#0048B9
Tritanopia (blue-blind)
#175673
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #502dbc;
/* rgb */ color: rgb(80, 45, 188);
/* oklch */ color: oklch(43.9% 0.207 285.3);
Tailwind
colors: {
  custom: {
    50: '#8d6ad1',
    500: '#502dbc',
    950: '#000000',
  },
}
SCSS
$custom: #502dbc;
$custom-light: #8d6ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#502dbc",
  "rgb": {
    "r": 80,
    "g": 45,
    "b": 188
  },
  "hsl": {
    "h": 254.685,
    "s": 61.373,
    "l": 45.686
  },
  "oklch": {
    "l": 0.4393,
    "c": 0.20678,
    "h": 285.3
  },
  "luminance": 0.07213
}

Semantic roles & 50–950 ramp

primary
#502DBC
secondary
#B7CA7B
accent
#E443BD
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #502DBC

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

Preview Lab → · Contrast checker → · Palette generator →

#502DBC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva