#5123CA#5123CA

#5123CA is a dark, highly saturated violet. Relative luminance 0.072; OKLCH L 44.4% C 0.231 H 284.5°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#5123CA
RGBrgb(81, 35, 202)
HSLhsl(257, 70%, 46%)
HSVhsv(257, 83%, 79%)
CMYKcmyk(59.9%, 82.7%, 0%, 20.8%)
CIE-LABlab(32.29, 59.94, -77.44)
CIE-LCHlch(32.29, 97.93, 307.74°)
OKLaboklab(44.38% 0.0578 -0.2232)
OKLCHoklch(44.38% 0.231 284.5)
XYZxyz(14.6518, 7.2147, 56.4862)
Luminance0.0722 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5123CA #9CCA23
analogous
#2349CA #5123CA #A523CA
triadic
#5123CA #CA5123 #23CA51
tetradic
#5123CA #CA2349 #9CCA23 #23CAA5
square
#5123CA #CA2349 #9CCA23 #23CAA5
split-complementary
#5123CA #CAA523 #49CA23
monochromatic
#271162 #3C1A96 #5123CA #744AE0 #9C7FE9

Accessibility & contrast

On white

8.60
#5123CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#5123CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5123CA
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5123CA#FFFFFF#000000##FFFFFF
##5123CA1.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050CE
Deuteranopia (green-blind)
#0047C7
Tritanopia (blue-blind)
#005779
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5123ca;
/* rgb */ color: rgb(81, 35, 202);
/* oklch */ color: oklch(44.4% 0.231 284.5);
Tailwind
colors: {
  custom: {
    50: '#9166dc',
    500: '#5123ca',
    950: '#000000',
  },
}
SCSS
$custom: #5123ca;
$custom-light: #9166dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5123ca",
  "rgb": {
    "r": 81,
    "g": 35,
    "b": 202
  },
  "hsl": {
    "h": 256.527,
    "s": 70.464,
    "l": 46.471
  },
  "oklch": {
    "l": 0.44379,
    "c": 0.23059,
    "h": 284.5
  },
  "luminance": 0.07216
}

Semantic roles & 50–950 ramp

primary
#5123CA
secondary
#B8D178
accent
#ED3BBC
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0615
muted
#7E7A83

Preview Lab

Preview with #5123CA

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

Preview Lab → · Contrast checker → · Palette generator →

#5123CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva