#5127CA#5127CA

#5127CA is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.8% C 0.228 H 284.2°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#5127CA
RGBrgb(81, 39, 202)
HSLhsl(255, 68%, 47%)
HSVhsv(255, 81%, 79%)
CMYKcmyk(59.9%, 80.7%, 0%, 20.8%)
CIE-LABlab(32.84, 58.33, -76.54)
CIE-LCHlch(32.84, 96.23, 307.31°)
OKLaboklab(44.76% 0.0558 -0.2206)
OKLCHoklch(44.76% 0.228 284.2)
XYZxyz(14.7763, 7.4637, 56.5277)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5127CA #A0CA27
analogous
#274FCA #5127CA #A327CA
triadic
#5127CA #CA5127 #27CA51
tetradic
#5127CA #CA274F #A0CA27 #27CAA3
square
#5127CA #CA274F #A0CA27 #27CAA3
split-complementary
#5127CA #CAA327 #4FCA27
monochromatic
#281363 #3C1D97 #5127CA #7551DD #9E84E7

Accessibility & contrast

On white

8.42
#5127CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#5127CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5127CA
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5127CA#FFFFFF#000000##FFFFFF
##5127CA1.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5127ca;
/* rgb */ color: rgb(81, 39, 202);
/* oklch */ color: oklch(44.8% 0.228 284.2);
Tailwind
colors: {
  custom: {
    50: '#9168dc',
    500: '#5127ca',
    950: '#000000',
  },
}
SCSS
$custom: #5127ca;
$custom-light: #9168dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5127ca",
  "rgb": {
    "r": 81,
    "g": 39,
    "b": 202
  },
  "hsl": {
    "h": 255.46,
    "s": 67.635,
    "l": 47.255
  },
  "oklch": {
    "l": 0.44757,
    "c": 0.22757,
    "h": 284.2
  },
  "luminance": 0.07465
}

Semantic roles & 50–950 ramp

primary
#5127CA
secondary
#BBD07C
accent
#EB3DBE
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #5127CA

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

Preview Lab → · Contrast checker → · Palette generator →

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