#502BCA#502BCA

#502BCA is a mid, highly saturated violet. Relative luminance 0.077; OKLCH L 45.1% C 0.224 H 283.4°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#502BCA
RGBrgb(80, 43, 202)
HSLhsl(254, 65%, 48%)
HSVhsv(254, 79%, 79%)
CMYKcmyk(60.4%, 78.7%, 0%, 20.8%)
CIE-LABlab(33.34, 56.49, -75.71)
CIE-LCHlch(33.34, 94.46, 306.73°)
OKLaboklab(45.08% 0.052 -0.2183)
OKLCHoklch(45.08% 0.224 283.4)
XYZxyz(14.8295, 7.6965, 56.5698)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502BCA #A5CA2B
analogous
#2B56CA #502BCA #9F2BCA
triadic
#502BCA #CA502B #2BCA50
tetradic
#502BCA #CA2B56 #A5CA2B #2BCA9F
square
#502BCA #CA2B56 #A5CA2B #2BCA9F
split-complementary
#502BCA #CA9F2B #56CA2B
monochromatic
#281665 #3C2098 #502BCA #7657DB #9F89E6

Accessibility & contrast

On white

8.27
#502BCA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#502BCA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502BCA
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502BCA#FFFFFF#000000##FFFFFF
##502BCA1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053CE
Deuteranopia (green-blind)
#0049C7
Tritanopia (blue-blind)
#005A7B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #502bca;
/* rgb */ color: rgb(80, 43, 202);
/* oklch */ color: oklch(45.1% 0.224 283.4);
Tailwind
colors: {
  custom: {
    50: '#906adb',
    500: '#502bca',
    950: '#000000',
  },
}
SCSS
$custom: #502bca;
$custom-light: #906adb;
$custom-dark: #000000;
JSON
{
  "hex": "#502bca",
  "rgb": {
    "r": 80,
    "g": 43,
    "b": 202
  },
  "hsl": {
    "h": 253.962,
    "s": 64.898,
    "l": 48.039
  },
  "oklch": {
    "l": 0.45083,
    "c": 0.22441,
    "h": 283.4
  },
  "luminance": 0.07697
}

Semantic roles & 50–950 ramp

primary
#502BCA
secondary
#BDD081
accent
#E840C1
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #502BCA

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

Preview Lab → · Contrast checker → · Palette generator →

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