#502F90#502F90

#502F90 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.2% C 0.152 H 294.2°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#502F90
RGBrgb(80, 47, 144)
HSLhsl(260, 51%, 37%)
HSVhsv(260, 67%, 56%)
CMYKcmyk(44.4%, 67.4%, 0%, 43.5%)
CIE-LABlab(28.78, 37.87, -48.44)
CIE-LCHlch(28.78, 61.49, 308.01°)
OKLaboklab(40.24% 0.0621 -0.1384)
OKLCHoklch(40.24% 0.152 294.2)
XYZxyz(9.3575, 5.7519, 26.9973)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502F90 #6F902F
analogous
#2F3F90 #502F90 #802F90
triadic
#502F90 #90502F #2F9050
tetradic
#502F90 #902F3F #6F902F #2F9080
square
#502F90 #902F3F #6F902F #2F9080
split-complementary
#502F90 #90802F #3F902F
monochromatic
#1D1134 #362062 #502F90 #6A3EBE #8D6BCF

Accessibility & contrast

On white

9.77
#502F90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#502F90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502F90
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502F90#FFFFFF#000000##FFFFFF
##502F901.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004593
Deuteranopia (green-blind)
#00428E
Tritanopia (blue-blind)
#3E465B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #502f90;
/* rgb */ color: rgb(80, 47, 144);
/* oklch */ color: oklch(40.2% 0.152 294.2);
Tailwind
colors: {
  custom: {
    50: '#876ab1',
    500: '#502f90',
    950: '#000000',
  },
}
SCSS
$custom: #502f90;
$custom-light: #876ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#502f90",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 144
  },
  "hsl": {
    "h": 260.412,
    "s": 50.785,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40245,
    "c": 0.15173,
    "h": 294.2
  },
  "luminance": 0.05752
}

Semantic roles & 50–950 ramp

primary
#502F90
secondary
#9AB665
accent
#DA4EAA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #502F90

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

Preview Lab → · Contrast checker → · Palette generator →

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