#502FDF#502FDF

#502FDF is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.6% C 0.244 H 280.3°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#502FDF
RGBrgb(80, 47, 223)
HSLhsl(251, 73%, 53%)
HSVhsv(251, 79%, 87%)
CMYKcmyk(64.1%, 78.9%, 0%, 12.5%)
CIE-LABlab(36.11, 60.60, -83.28)
CIE-LCHlch(36.11, 102.99, 306.04°)
OKLaboklab(47.64% 0.0438 -0.2404)
OKLCHoklch(47.64% 0.244 280.3)
XYZxyz(17.6398, 9.0648, 70.6178)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502FDF #BEDF2F
analogous
#2F66DF #502FDF #A82FDF
triadic
#502FDF #DF502F #2FDF50
tetradic
#502FDF #DF2F66 #BEDF2F #2FDFA8
square
#502FDF #DF2F66 #BEDF2F #2FDFA8
split-complementary
#502FDF #DFA82F #66DF2F
monochromatic
#281480 #391CB5 #502FDF #7D64E7 #A999EF

Accessibility & contrast

On white

7.46
#502FDF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#502FDF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502FDF
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502FDF#FFFFFF#000000##FFFFFF
##502FDF1.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BE4
Deuteranopia (green-blind)
#004EDC
Tritanopia (blue-blind)
#006588
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #502fdf;
/* rgb */ color: rgb(80, 47, 223);
/* oklch */ color: oklch(47.6% 0.244 280.3);
Tailwind
colors: {
  custom: {
    50: '#936dea',
    500: '#502fdf',
    950: '#000000',
  },
}
SCSS
$custom: #502fdf;
$custom-light: #936dea;
$custom-dark: #000000;
JSON
{
  "hex": "#502fdf",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 223
  },
  "hsl": {
    "h": 251.25,
    "s": 73.333,
    "l": 52.941
  },
  "oklch": {
    "l": 0.47641,
    "c": 0.24434,
    "h": 280.3
  },
  "luminance": 0.09066
}

Semantic roles & 50–950 ramp

primary
#502FDF
secondary
#CDDB8F
accent
#F038CD
background
#FAF6FE
surface
#F3ECFD
border
#CDC7D5
text
#0F0716
muted
#7F7A84

Preview Lab

Preview with #502FDF

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

Preview Lab → · Contrast checker → · Palette generator →

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