#502FC0#502FC0

#502FC0 is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.6% C 0.209 H 284.5°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#502FC0
RGBrgb(80, 47, 192)
HSLhsl(254, 61%, 47%)
HSVhsv(254, 76%, 75%)
CMYKcmyk(58.3%, 75.5%, 0%, 24.7%)
CIE-LABlab(33.01, 51.76, -70.39)
CIE-LCHlch(33.01, 87.38, 306.33°)
OKLaboklab(44.56% 0.0523 -0.2028)
OKLCHoklch(44.56% 0.209 284.5)
XYZxyz(13.8363, 7.5434, 50.5859)
Luminance0.0754 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502FC0 #9FC02F
analogous
#2F57C0 #502FC0 #992FC0
triadic
#502FC0 #C0502F #2FC050
tetradic
#502FC0 #C02F57 #9FC02F #2FC099
square
#502FC0 #C02F57 #9FC02F #2FC099
split-complementary
#502FC0 #C0992F #57C02F
monochromatic
#27175E #3C238F #502FC0 #7356D6 #9C88E2

Accessibility & contrast

On white

8.37
#502FC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#502FC0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502FC0
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502FC0#FFFFFF#000000##FFFFFF
##502FC01.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C4
Deuteranopia (green-blind)
#0049BD
Tritanopia (blue-blind)
#0E5876
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #502fc0;
/* rgb */ color: rgb(80, 47, 192);
/* oklch */ color: oklch(44.6% 0.209 284.5);
Tailwind
colors: {
  custom: {
    50: '#8e6cd4',
    500: '#502fc0',
    950: '#000000',
  },
}
SCSS
$custom: #502fc0;
$custom-light: #8e6cd4;
$custom-dark: #000000;
JSON
{
  "hex": "#502fc0",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 192
  },
  "hsl": {
    "h": 253.655,
    "s": 60.669,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44557,
    "c": 0.20944,
    "h": 284.5
  },
  "luminance": 0.07544
}

Semantic roles & 50–950 ramp

primary
#502FC0
secondary
#BACB7F
accent
#E444BF
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #502FC0

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

Preview Lab → · Contrast checker → · Palette generator →

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