#502BB0#502BB0

#502BB0 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.5% C 0.195 H 287.7°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#502BB0
RGBrgb(80, 43, 176)
HSLhsl(257, 61%, 43%)
HSVhsv(257, 76%, 69%)
CMYKcmyk(54.5%, 75.6%, 0%, 31%)
CIE-LABlab(30.80, 49.15, -64.55)
CIE-LCHlch(30.80, 81.13, 307.29°)
OKLaboklab(42.54% 0.0594 -0.1857)
OKLCHoklch(42.54% 0.195 287.7)
XYZxyz(12.0063, 6.5672, 41.7008)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502BB0 #8BB02B
analogous
#2B48B0 #502BB0 #932BB0
triadic
#502BB0 #B0502B #2BB050
tetradic
#502BB0 #B02B48 #8BB02B #2BB093
square
#502BB0 #B02B48 #8BB02B #2BB093
split-complementary
#502BB0 #B0932B #48B02B
monochromatic
#23134E #3A1F7F #502BB0 #6D46D2 #9478DE

Accessibility & contrast

On white

9.08
#502BB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#502BB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502BB0
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502BB0#FFFFFF#000000##FFFFFF
##502BB01.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB4
Deuteranopia (green-blind)
#0045AE
Tritanopia (blue-blind)
#28506C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #502bb0;
/* rgb */ color: rgb(80, 43, 176);
/* oklch */ color: oklch(42.5% 0.195 287.7);
Tailwind
colors: {
  custom: {
    50: '#8c69c9',
    500: '#502bb0',
    950: '#000000',
  },
}
SCSS
$custom: #502bb0;
$custom-light: #8c69c9;
$custom-dark: #000000;
JSON
{
  "hex": "#502bb0",
  "rgb": {
    "r": 80,
    "g": 43,
    "b": 176
  },
  "hsl": {
    "h": 256.692,
    "s": 60.731,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42542,
    "c": 0.19495,
    "h": 287.7
  },
  "luminance": 0.06568
}

Semantic roles & 50–950 ramp

primary
#502BB0
secondary
#AEC671
accent
#E444B7
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #502BB0

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

Preview Lab → · Contrast checker → · Palette generator →

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