#5126CA#5126CA

#5126CA is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.7% C 0.228 H 284.3°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#5126CA
RGBrgb(81, 38, 202)
HSLhsl(256, 68%, 47%)
HSVhsv(256, 81%, 79%)
CMYKcmyk(59.9%, 81.2%, 0%, 20.8%)
CIE-LABlab(32.70, 58.75, -76.77)
CIE-LCHlch(32.70, 96.67, 307.43°)
OKLaboklab(44.66% 0.0563 -0.2213)
OKLCHoklch(44.66% 0.228 284.3)
XYZxyz(14.7438, 7.3989, 56.5169)
Luminance0.0740 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5126CA #9FCA26
analogous
#264DCA #5126CA #A326CA
triadic
#5126CA #CA5126 #26CA51
tetradic
#5126CA #CA264D #9FCA26 #26CAA3
square
#5126CA #CA264D #9FCA26 #26CAA3
split-complementary
#5126CA #CAA326 #4DCA26
monochromatic
#281363 #3C1C96 #5126CA #754FDE #9D83E8

Accessibility & contrast

On white

8.47
#5126CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#5126CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5126CA
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5126CA#FFFFFF#000000##FFFFFF
##5126CA1.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051CE
Deuteranopia (green-blind)
#0048C7
Tritanopia (blue-blind)
#00597A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5126ca;
/* rgb */ color: rgb(81, 38, 202);
/* oklch */ color: oklch(44.7% 0.228 284.3);
Tailwind
colors: {
  custom: {
    50: '#9168dc',
    500: '#5126ca',
    950: '#000000',
  },
}
SCSS
$custom: #5126ca;
$custom-light: #9168dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5126ca",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 202
  },
  "hsl": {
    "h": 255.732,
    "s": 68.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.44659,
    "c": 0.22835,
    "h": 284.3
  },
  "luminance": 0.074
}

Semantic roles & 50–950 ramp

primary
#5126CA
secondary
#BAD17B
accent
#EB3DBD
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0615
muted
#7E7A83

Preview Lab

Preview with #5126CA

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

Preview Lab → · Contrast checker → · Palette generator →

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