#502F92#502F92

#502F92 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.4% C 0.154 H 293.6°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#502F92
RGBrgb(80, 47, 146)
HSLhsl(260, 51%, 38%)
HSVhsv(260, 68%, 57%)
CMYKcmyk(45.2%, 67.8%, 0%, 42.7%)
CIE-LABlab(28.94, 38.44, -49.42)
CIE-LCHlch(28.94, 62.61, 307.88°)
OKLaboklab(40.41% 0.0618 -0.1413)
OKLCHoklch(40.41% 0.154 293.6)
XYZxyz(9.5117, 5.8136, 27.8095)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502F92 #71922F
analogous
#2F3F92 #502F92 #812F92
triadic
#502F92 #92502F #2F9250
tetradic
#502F92 #922F3F #71922F #2F9281
square
#502F92 #922F3F #71922F #2F9281
split-complementary
#502F92 #92812F #3F922F
monochromatic
#1D1135 #372064 #502F92 #693EC0 #8D6CD0

Accessibility & contrast

On white

9.71
#502F92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#502F92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502F92
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502F92#FFFFFF#000000##FFFFFF
##502F921.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004595
Deuteranopia (green-blind)
#004290
Tritanopia (blue-blind)
#3D475C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #502f92;
/* rgb */ color: rgb(80, 47, 146);
/* oklch */ color: oklch(40.4% 0.154 293.6);
Tailwind
colors: {
  custom: {
    50: '#876ab3',
    500: '#502f92',
    950: '#000000',
  },
}
SCSS
$custom: #502f92;
$custom-light: #876ab3;
$custom-dark: #000000;
JSON
{
  "hex": "#502f92",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 146
  },
  "hsl": {
    "h": 260,
    "s": 51.295,
    "l": 37.843
  },
  "oklch": {
    "l": 0.4041,
    "c": 0.15424,
    "h": 293.6
  },
  "luminance": 0.05814
}

Semantic roles & 50–950 ramp

primary
#502F92
secondary
#9CB766
accent
#DB4DAC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #502F92

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

Preview Lab → · Contrast checker → · Palette generator →

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