#502F74#502F74

#502F74 is a dark, moderate violet. Relative luminance 0.050; OKLCH L 38.1% C 0.116 H 303.4°. Best body text is #FFFFFF at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#502F74
RGBrgb(80, 47, 116)
HSLhsl(269, 42%, 32%)
HSVhsv(269, 59%, 45%)
CMYKcmyk(31%, 59.5%, 0%, 54.5%)
CIE-LABlab(26.73, 30.04, -34.21)
CIE-LCHlch(26.73, 45.52, 311.29°)
OKLaboklab(38.11% 0.0638 -0.0966)
OKLCHoklch(38.11% 0.116 303.4)
XYZxyz(7.4765, 4.9995, 17.0907)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502F74 #53742F
analogous
#2F3174 #502F74 #732F74
triadic
#502F74 #74502F #2F7450
tetradic
#502F74 #742F31 #53742F #2F7473
square
#502F74 #742F31 #53742F #2F7473
split-complementary
#502F74 #74732F #31742F
monochromatic
#140C1D #321D48 #502F74 #6E41A0 #8D5FBE

Accessibility & contrast

On white

10.50
#502F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#502F74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502F74
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502F74#FFFFFF#000000##FFFFFF
##502F741.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133E76
Deuteranopia (green-blind)
#203F72
Tritanopia (blue-blind)
#493D4C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #502f74;
/* rgb */ color: rgb(80, 47, 116);
/* oklch */ color: oklch(38.1% 0.116 303.4);
Tailwind
colors: {
  custom: {
    50: '#84699c',
    500: '#502f74',
    950: '#000000',
  },
}
SCSS
$custom: #502f74;
$custom-light: #84699c;
$custom-dark: #000000;
JSON
{
  "hex": "#502f74",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 116
  },
  "hsl": {
    "h": 268.696,
    "s": 42.331,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3811,
    "c": 0.11574,
    "h": 303.4
  },
  "luminance": 0.04999
}

Semantic roles & 50–950 ramp

primary
#502F74
secondary
#81A55A
accent
#D25697
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #502F74

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

Preview Lab → · Contrast checker → · Palette generator →

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