#5125CA#5125CA

#5125CA is a dark, highly saturated violet. Relative luminance 0.073; OKLCH L 44.6% C 0.229 H 284.4°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#5125CA
RGBrgb(81, 37, 202)
HSLhsl(256, 69%, 47%)
HSVhsv(256, 82%, 79%)
CMYKcmyk(59.9%, 81.7%, 0%, 20.8%)
CIE-LABlab(32.56, 59.15, -77.00)
CIE-LCHlch(32.56, 97.10, 307.53°)
OKLaboklab(44.56% 0.0568 -0.2219)
OKLCHoklch(44.56% 0.229 284.4)
XYZxyz(14.7123, 7.3358, 56.5063)
Luminance0.0734 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5125CA #9ECA25
analogous
#254CCA #5125CA #A425CA
triadic
#5125CA #CA5125 #25CA51
tetradic
#5125CA #CA254C #9ECA25 #25CAA4
square
#5125CA #CA254C #9ECA25 #25CAA4
split-complementary
#5125CA #CAA425 #4CCA25
monochromatic
#281263 #3C1C96 #5125CA #744EDF #9D81E8

Accessibility & contrast

On white

8.51
#5125CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#5125CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5125CA
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5125CA#FFFFFF#000000##FFFFFF
##5125CA1.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051CE
Deuteranopia (green-blind)
#0047C7
Tritanopia (blue-blind)
#005879
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5125ca;
/* rgb */ color: rgb(81, 37, 202);
/* oklch */ color: oklch(44.6% 0.229 284.4);
Tailwind
colors: {
  custom: {
    50: '#9167dc',
    500: '#5125ca',
    950: '#000000',
  },
}
SCSS
$custom: #5125ca;
$custom-light: #9167dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5125ca",
  "rgb": {
    "r": 81,
    "g": 37,
    "b": 202
  },
  "hsl": {
    "h": 256,
    "s": 69.038,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44564,
    "c": 0.22911,
    "h": 284.4
  },
  "luminance": 0.07337
}

Semantic roles & 50–950 ramp

primary
#5125CA
secondary
#BAD17A
accent
#EC3CBD
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0615
muted
#7E7A83

Preview Lab

Preview with #5125CA

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

Preview Lab → · Contrast checker → · Palette generator →

#5125CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva