#502BB5#502BB5

#502BB5 is a dark, highly saturated violet. Relative luminance 0.068; OKLCH L 43.0% C 0.201 H 286.8°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#502BB5
RGBrgb(80, 43, 181)
HSLhsl(256, 62%, 44%)
HSVhsv(256, 76%, 71%)
CMYKcmyk(55.8%, 76.2%, 0%, 29%)
CIE-LABlab(31.27, 50.57, -66.75)
CIE-LCHlch(31.27, 83.74, 307.15°)
OKLaboklab(43.02% 0.058 -0.1921)
OKLCHoklch(43.02% 0.201 286.8)
XYZxyz(12.5101, 6.7687, 44.3544)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502BB5 #90B52B
analogous
#2B4BB5 #502BB5 #952BB5
triadic
#502BB5 #B5502B #2BB550
tetradic
#502BB5 #B52B4B #90B52B #2BB595
square
#502BB5 #B52B4B #90B52B #2BB595
split-complementary
#502BB5 #B5952B #4BB52B
monochromatic
#241452 #3A1F84 #502BB5 #6E49D4 #967BE0

Accessibility & contrast

On white

8.92
#502BB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#502BB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502BB5
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502BB5#FFFFFF#000000##FFFFFF
##502BB51.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB9
Deuteranopia (green-blind)
#0046B2
Tritanopia (blue-blind)
#22526F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #502bb5;
/* rgb */ color: rgb(80, 43, 181);
/* oklch */ color: oklch(43.0% 0.201 286.8);
Tailwind
colors: {
  custom: {
    50: '#8c69cc',
    500: '#502bb5',
    950: '#000000',
  },
}
SCSS
$custom: #502bb5;
$custom-light: #8c69cc;
$custom-dark: #000000;
JSON
{
  "hex": "#502bb5",
  "rgb": {
    "r": 80,
    "g": 43,
    "b": 181
  },
  "hsl": {
    "h": 256.087,
    "s": 61.607,
    "l": 43.922
  },
  "oklch": {
    "l": 0.43019,
    "c": 0.20071,
    "h": 286.8
  },
  "luminance": 0.06769
}

Semantic roles & 50–950 ramp

primary
#502BB5
secondary
#B1C874
accent
#E543B9
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #502BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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