#5123A0#5123A0

#5123A0 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.185 H 292.8°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#5123A0
RGBrgb(81, 35, 160)
HSLhsl(262, 64%, 38%)
HSVhsv(262, 78%, 63%)
CMYKcmyk(49.4%, 78.1%, 0%, 37.3%)
CIE-LABlab(28.09, 48.65, -59.37)
CIE-LCHlch(28.09, 76.75, 309.33°)
OKLaboklab(40.21% 0.0716 -0.1704)
OKLCHoklch(40.21% 0.185 292.8)
XYZxyz(10.3378, 5.4891, 33.7657)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5123A0 #72A023
analogous
#2333A0 #5123A0 #8F23A0
triadic
#5123A0 #A05123 #23A051
tetradic
#5123A0 #A02333 #72A023 #23A08F
square
#5123A0 #A02333 #72A023 #23A08F
split-complementary
#5123A0 #A08F23 #33A023
monochromatic
#1E0D3C #38186E #5123A0 #6B2FD1 #8E61DC

Accessibility & contrast

On white

10.01
#5123A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5123A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5123A0
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5123A0#FFFFFF#000000##FFFFFF
##5123A01.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A3
Deuteranopia (green-blind)
#00409E
Tritanopia (blue-blind)
#384661
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5123a0;
/* rgb */ color: rgb(81, 35, 160);
/* oklch */ color: oklch(40.2% 0.185 292.8);
Tailwind
colors: {
  custom: {
    50: '#8a64bd',
    500: '#5123a0',
    950: '#000000',
  },
}
SCSS
$custom: #5123a0;
$custom-light: #8a64bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5123a0",
  "rgb": {
    "r": 81,
    "g": 35,
    "b": 160
  },
  "hsl": {
    "h": 262.08,
    "s": 64.103,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40208,
    "c": 0.18483,
    "h": 292.8
  },
  "luminance": 0.05489
}

Semantic roles & 50–950 ramp

primary
#5123A0
secondary
#9DC15D
accent
#E741AA
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5123A0

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

Preview Lab → · Contrast checker → · Palette generator →

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