#502FBC#502FBC

#502FBC is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.2% C 0.205 H 285.1°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#502FBC
RGBrgb(80, 47, 188)
HSLhsl(254, 60%, 46%)
HSVhsv(254, 75%, 74%)
CMYKcmyk(57.4%, 75%, 0%, 26.3%)
CIE-LABlab(32.63, 50.61, -68.67)
CIE-LCHlch(32.63, 85.30, 306.39°)
OKLaboklab(44.17% 0.0533 -0.1978)
OKLCHoklch(44.17% 0.205 285.1)
XYZxyz(13.3991, 7.3685, 48.2834)
Luminance0.0737 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502FBC #9BBC2F
analogous
#2F54BC #502FBC #962FBC
triadic
#502FBC #BC502F #2FBC50
tetradic
#502FBC #BC2F54 #9BBC2F #2FBC96
square
#502FBC #BC2F54 #9BBC2F #2FBC96
split-complementary
#502FBC #BC962F #54BC2F
monochromatic
#26175A #3B238B #502FBC #7254D4 #9A85E0

Accessibility & contrast

On white

8.49
#502FBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#502FBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502FBC
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502FBC#FFFFFF#000000##FFFFFF
##502FBC1.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C0
Deuteranopia (green-blind)
#0048B9
Tritanopia (blue-blind)
#175773
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #502fbc;
/* rgb */ color: rgb(80, 47, 188);
/* oklch */ color: oklch(44.2% 0.205 285.1);
Tailwind
colors: {
  custom: {
    50: '#8d6bd1',
    500: '#502fbc',
    950: '#000000',
  },
}
SCSS
$custom: #502fbc;
$custom-light: #8d6bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#502fbc",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 188
  },
  "hsl": {
    "h": 254.043,
    "s": 60,
    "l": 46.078
  },
  "oklch": {
    "l": 0.44173,
    "c": 0.20482,
    "h": 285.1
  },
  "luminance": 0.07369
}

Semantic roles & 50–950 ramp

primary
#502FBC
secondary
#B8CA7D
accent
#E345BE
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #502FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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