#5123BC#5123BC

#5123BC is a dark, highly saturated violet. Relative luminance 0.066; OKLCH L 42.9% C 0.216 H 286.9°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#5123BC
RGBrgb(81, 35, 188)
HSLhsl(258, 69%, 44%)
HSVhsv(258, 81%, 74%)
CMYKcmyk(56.9%, 81.4%, 0%, 26.3%)
CIE-LABlab(30.83, 56.20, -71.62)
CIE-LCHlch(30.83, 91.04, 308.12°)
OKLaboklab(42.95% 0.0627 -0.2062)
OKLCHoklch(42.95% 0.216 286.9)
XYZxyz(13.0688, 6.5815, 48.1489)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5123BC #8EBC23
analogous
#2341BC #5123BC #9D23BC
triadic
#5123BC #BC5123 #23BC51
tetradic
#5123BC #BC2341 #8EBC23 #23BC9D
square
#5123BC #BC2341 #8EBC23 #23BC9D
split-complementary
#5123BC #BC9D23 #41BC23
monochromatic
#251055 #3B1988 #5123BC #6F41DC #9674E5

Accessibility & contrast

On white

9.07
#5123BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5123BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5123BC
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5123BC#FFFFFF#000000##FFFFFF
##5123BC1.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CC0
Deuteranopia (green-blind)
#0044B9
Tritanopia (blue-blind)
#1D5271
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5123bc;
/* rgb */ color: rgb(81, 35, 188);
/* oklch */ color: oklch(42.9% 0.216 286.9);
Tailwind
colors: {
  custom: {
    50: '#8f65d2',
    500: '#5123bc',
    950: '#000000',
  },
}
SCSS
$custom: #5123bc;
$custom-light: #8f65d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5123bc",
  "rgb": {
    "r": 81,
    "g": 35,
    "b": 188
  },
  "hsl": {
    "h": 258.039,
    "s": 68.61,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42945,
    "c": 0.21556,
    "h": 286.9
  },
  "luminance": 0.06582
}

Semantic roles & 50–950 ramp

primary
#5123BC
secondary
#B0CC6F
accent
#EB3CB7
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0614
muted
#7E7A83

Preview Lab

Preview with #5123BC

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

Preview Lab → · Contrast checker → · Palette generator →

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