#502FBA#502FBA

#502FBA is a dark, highly saturated violet. Relative luminance 0.073; OKLCH L 44.0% C 0.202 H 285.4°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#502FBA
RGBrgb(80, 47, 186)
HSLhsl(254, 60%, 46%)
HSVhsv(254, 75%, 73%)
CMYKcmyk(57%, 74.7%, 0%, 27.1%)
CIE-LABlab(32.44, 50.03, -67.80)
CIE-LCHlch(32.44, 84.26, 306.42°)
OKLaboklab(43.98% 0.0538 -0.1952)
OKLCHoklch(43.98% 0.202 285.4)
XYZxyz(13.1850, 7.2829, 47.1558)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502FBA #99BA2F
analogous
#2F53BA #502FBA #962FBA
triadic
#502FBA #BA502F #2FBA50
tetradic
#502FBA #BA2F53 #99BA2F #2FBA96
square
#502FBA #BA2F53 #99BA2F #2FBA96
split-complementary
#502FBA #BA962F #53BA2F
monochromatic
#261658 #3B2389 #502FBA #7153D3 #9984E0

Accessibility & contrast

On white

8.55
#502FBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#502FBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502FBA
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502FBA#FFFFFF#000000##FFFFFF
##502FBA1.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BE
Deuteranopia (green-blind)
#0048B7
Tritanopia (blue-blind)
#1B5672
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #502fba;
/* rgb */ color: rgb(80, 47, 186);
/* oklch */ color: oklch(44.0% 0.202 285.4);
Tailwind
colors: {
  custom: {
    50: '#8d6bd0',
    500: '#502fba',
    950: '#000000',
  },
}
SCSS
$custom: #502fba;
$custom-light: #8d6bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#502fba",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 186
  },
  "hsl": {
    "h": 254.245,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.43983,
    "c": 0.20249,
    "h": 285.4
  },
  "luminance": 0.07284
}

Semantic roles & 50–950 ramp

primary
#502FBA
secondary
#B7C97C
accent
#E345BD
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #502FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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