#5123B0#5123B0

#5123B0 is a dark, highly saturated violet. Relative luminance 0.061; OKLCH L 41.7% C 0.203 H 289.2°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#5123B0
RGBrgb(81, 35, 176)
HSLhsl(260, 67%, 41%)
HSVhsv(260, 80%, 69%)
CMYKcmyk(54%, 80.1%, 0%, 31%)
CIE-LABlab(29.63, 52.97, -66.48)
CIE-LCHlch(29.63, 85.00, 308.55°)
OKLaboklab(41.75% 0.0666 -0.1912)
OKLCHoklch(41.75% 0.203 289.2)
XYZxyz(11.8286, 6.0854, 41.6172)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5123B0 #82B023
analogous
#233CB0 #5123B0 #9823B0
triadic
#5123B0 #B05123 #23B051
tetradic
#5123B0 #B0233C #82B023 #23B098
square
#5123B0 #B0233C #82B023 #23B098
split-complementary
#5123B0 #B09823 #3CB023
monochromatic
#220F4A #3A197D #5123B0 #6C39D8 #926CE2

Accessibility & contrast

On white

9.47
#5123B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5123B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5123B0
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5123B0#FFFFFF#000000##FFFFFF
##5123B01.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B4
Deuteranopia (green-blind)
#0042AD
Tritanopia (blue-blind)
#2B4D6A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5123b0;
/* rgb */ color: rgb(81, 35, 176);
/* oklch */ color: oklch(41.7% 0.203 289.2);
Tailwind
colors: {
  custom: {
    50: '#8d64c9',
    500: '#5123b0',
    950: '#000000',
  },
}
SCSS
$custom: #5123b0;
$custom-light: #8d64c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5123b0",
  "rgb": {
    "r": 81,
    "g": 35,
    "b": 176
  },
  "hsl": {
    "h": 259.574,
    "s": 66.825,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41748,
    "c": 0.2025,
    "h": 289.2
  },
  "luminance": 0.06086
}

Semantic roles & 50–950 ramp

primary
#5123B0
secondary
#A8C867
accent
#EA3EB2
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5123B0

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

Preview Lab → · Contrast checker → · Palette generator →

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