#5123AE#5123AE

#5123AE is a dark, highly saturated violet. Relative luminance 0.060; OKLCH L 41.6% C 0.200 H 289.6°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#5123AE
RGBrgb(81, 35, 174)
HSLhsl(260, 67%, 41%)
HSVhsv(260, 80%, 68%)
CMYKcmyk(53.4%, 79.9%, 0%, 31.8%)
CIE-LABlab(29.43, 52.43, -65.60)
CIE-LCHlch(29.43, 83.98, 308.63°)
OKLaboklab(41.55% 0.0673 -0.1887)
OKLCHoklch(41.55% 0.2 289.6)
XYZxyz(11.6321, 6.0068, 40.5827)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5123AE #80AE23
analogous
#233AAE #5123AE #9623AE
triadic
#5123AE #AE5123 #23AE51
tetradic
#5123AE #AE233A #80AE23 #23AE96
square
#5123AE #AE233A #80AE23 #23AE96
split-complementary
#5123AE #AE9623 #3AAE23
monochromatic
#220F48 #39197B #5123AE #6C37D7 #926AE1

Accessibility & contrast

On white

9.54
#5123AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5123AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5123AE
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5123AE#FFFFFF#000000##FFFFFF
##5123AE1.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B2
Deuteranopia (green-blind)
#0042AB
Tritanopia (blue-blind)
#2D4C69
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5123ae;
/* rgb */ color: rgb(81, 35, 174);
/* oklch */ color: oklch(41.6% 0.200 289.6);
Tailwind
colors: {
  custom: {
    50: '#8c64c7',
    500: '#5123ae',
    950: '#000000',
  },
}
SCSS
$custom: #5123ae;
$custom-light: #8c64c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5123ae",
  "rgb": {
    "r": 81,
    "g": 35,
    "b": 174
  },
  "hsl": {
    "h": 259.856,
    "s": 66.507,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41552,
    "c": 0.20031,
    "h": 289.6
  },
  "luminance": 0.06007
}

Semantic roles & 50–950 ramp

primary
#5123AE
secondary
#A7C766
accent
#E93EB1
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5123AE

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

Preview Lab → · Contrast checker → · Palette generator →

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