#502F94#502F94

#502F94 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.6% C 0.157 H 293.1°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#502F94
RGBrgb(80, 47, 148)
HSLhsl(260, 52%, 38%)
HSVhsv(260, 68%, 58%)
CMYKcmyk(45.9%, 68.2%, 0%, 42%)
CIE-LABlab(29.10, 39.02, -50.38)
CIE-LCHlch(29.10, 63.72, 307.75°)
OKLaboklab(40.58% 0.0616 -0.1441)
OKLCHoklch(40.58% 0.157 293.1)
XYZxyz(9.6686, 5.8763, 28.6361)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502F94 #73942F
analogous
#2F4094 #502F94 #822F94
triadic
#502F94 #94502F #2F9450
tetradic
#502F94 #942F40 #73942F #2F9482
square
#502F94 #942F40 #73942F #2F9482
split-complementary
#502F94 #94822F #40942F
monochromatic
#1E1137 #372066 #502F94 #693EC2 #8D6DD1

Accessibility & contrast

On white

9.65
#502F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#502F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502F94
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502F94#FFFFFF#000000##FFFFFF
##502F941.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004697
Deuteranopia (green-blind)
#004392
Tritanopia (blue-blind)
#3C475D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #502f94;
/* rgb */ color: rgb(80, 47, 148);
/* oklch */ color: oklch(40.6% 0.157 293.1);
Tailwind
colors: {
  custom: {
    50: '#876ab4',
    500: '#502f94',
    950: '#000000',
  },
}
SCSS
$custom: #502f94;
$custom-light: #876ab4;
$custom-dark: #000000;
JSON
{
  "hex": "#502f94",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 148
  },
  "hsl": {
    "h": 259.604,
    "s": 51.795,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40577,
    "c": 0.15674,
    "h": 293.1
  },
  "luminance": 0.05877
}

Semantic roles & 50–950 ramp

primary
#502F94
secondary
#9DB867
accent
#DB4DAD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #502F94

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

Preview Lab → · Contrast checker → · Palette generator →

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