#5123A9#5123A9

#5123A9 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.1% C 0.195 H 290.7°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#5123A9
RGBrgb(81, 35, 169)
HSLhsl(261, 66%, 40%)
HSVhsv(261, 79%, 66%)
CMYKcmyk(52.1%, 79.3%, 0%, 33.7%)
CIE-LABlab(28.94, 51.08, -63.40)
CIE-LCHlch(28.94, 81.42, 308.85°)
OKLaboklab(41.07% 0.0689 -0.1822)
OKLCHoklch(41.07% 0.195 290.7)
XYZxyz(11.1537, 5.8155, 38.0632)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5123A9 #7BA923
analogous
#2338A9 #5123A9 #9423A9
triadic
#5123A9 #A95123 #23A951
tetradic
#5123A9 #A92338 #7BA923 #23A994
square
#5123A9 #A92338 #7BA923 #23A994
split-complementary
#5123A9 #A99423 #38A923
monochromatic
#200E44 #391976 #5123A9 #6B34D5 #9067DF

Accessibility & contrast

On white

9.71
#5123A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5123A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5123A9
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5123A9#FFFFFF#000000##FFFFFF
##5123A91.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AD
Deuteranopia (green-blind)
#0041A7
Tritanopia (blue-blind)
#314A66
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5123a9;
/* rgb */ color: rgb(81, 35, 169);
/* oklch */ color: oklch(41.1% 0.195 290.7);
Tailwind
colors: {
  custom: {
    50: '#8c64c4',
    500: '#5123a9',
    950: '#000000',
  },
}
SCSS
$custom: #5123a9;
$custom-light: #8c64c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5123a9",
  "rgb": {
    "r": 81,
    "g": 35,
    "b": 169
  },
  "hsl": {
    "h": 260.597,
    "s": 65.686,
    "l": 40
  },
  "oklch": {
    "l": 0.41066,
    "c": 0.19481,
    "h": 290.7
  },
  "luminance": 0.05816
}

Semantic roles & 50–950 ramp

primary
#5123A9
secondary
#A3C563
accent
#E93FAE
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5123A9

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

Preview Lab → · Contrast checker → · Palette generator →

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