#502BBD#502BBD

#502BBD is a dark, highly saturated violet. Relative luminance 0.071; OKLCH L 43.8% C 0.210 H 285.4°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#502BBD
RGBrgb(80, 43, 189)
HSLhsl(255, 63%, 45%)
HSVhsv(255, 77%, 74%)
CMYKcmyk(57.7%, 77.2%, 0%, 25.9%)
CIE-LABlab(32.05, 52.83, -70.22)
CIE-LCHlch(32.05, 87.87, 306.96°)
OKLaboklab(43.79% 0.0558 -0.2023)
OKLCHoklch(43.79% 0.21 285.4)
XYZxyz(13.3547, 7.1065, 48.8022)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502BBD #98BD2B
analogous
#2B4FBD #502BBD #992BBD
triadic
#502BBD #BD502B #2BBD50
tetradic
#502BBD #BD2B4F #98BD2B #2BBD99
square
#502BBD #BD2B4F #98BD2B #2BBD99
split-complementary
#502BBD #BD992B #4FBD2B
monochromatic
#261459 #3B208B #502BBD #714ED7 #9980E2

Accessibility & contrast

On white

8.67
#502BBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#502BBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502BBD
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502BBD#FFFFFF#000000##FFFFFF
##502BBD1.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC1
Deuteranopia (green-blind)
#0047BA
Tritanopia (blue-blind)
#165573
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #502bbd;
/* rgb */ color: rgb(80, 43, 189);
/* oklch */ color: oklch(43.8% 0.210 285.4);
Tailwind
colors: {
  custom: {
    50: '#8e69d2',
    500: '#502bbd',
    950: '#000000',
  },
}
SCSS
$custom: #502bbd;
$custom-light: #8e69d2;
$custom-dark: #000000;
JSON
{
  "hex": "#502bbd",
  "rgb": {
    "r": 80,
    "g": 43,
    "b": 189
  },
  "hsl": {
    "h": 255.205,
    "s": 62.931,
    "l": 45.49
  },
  "oklch": {
    "l": 0.43793,
    "c": 0.20982,
    "h": 285.4
  },
  "luminance": 0.07107
}

Semantic roles & 50–950 ramp

primary
#502BBD
secondary
#B6CB79
accent
#E642BC
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #502BBD

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

Preview Lab → · Contrast checker → · Palette generator →

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