#502FB6#502FB6

#502FB6 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.6% C 0.198 H 286.1°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#502FB6
RGBrgb(80, 47, 182)
HSLhsl(255, 59%, 45%)
HSVhsv(255, 74%, 71%)
CMYKcmyk(56%, 74.2%, 0%, 28.6%)
CIE-LABlab(32.07, 48.87, -66.04)
CIE-LCHlch(32.07, 82.16, 306.50°)
OKLaboklab(43.61% 0.0548 -0.1901)
OKLCHoklch(43.61% 0.198 286.1)
XYZxyz(12.7657, 7.1152, 44.9476)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502FB6 #95B62F
analogous
#2F51B6 #502FB6 #942FB6
triadic
#502FB6 #B6502F #2FB650
tetradic
#502FB6 #B62F51 #95B62F #2FB694
square
#502FB6 #B62F51 #95B62F #2FB694
split-complementary
#502FB6 #B6942F #51B62F
monochromatic
#251655 #3B2285 #502FB6 #7050D2 #9881DE

Accessibility & contrast

On white

8.67
#502FB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#502FB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502FB6
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502FB6#FFFFFF#000000##FFFFFF
##502FB61.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBA
Deuteranopia (green-blind)
#0047B3
Tritanopia (blue-blind)
#215470
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #502fb6;
/* rgb */ color: rgb(80, 47, 182);
/* oklch */ color: oklch(43.6% 0.198 286.1);
Tailwind
colors: {
  custom: {
    50: '#8c6bcd',
    500: '#502fb6',
    950: '#000000',
  },
}
SCSS
$custom: #502fb6;
$custom-light: #8c6bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#502fb6",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 182
  },
  "hsl": {
    "h": 254.667,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43605,
    "c": 0.19782,
    "h": 286.1
  },
  "luminance": 0.07116
}

Semantic roles & 50–950 ramp

primary
#502FB6
secondary
#B4C779
accent
#E246BC
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #502FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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