#4127AC#4127AC

#4127AC is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.3% C 0.196 H 282.0°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#4127AC
RGBrgb(65, 39, 172)
HSLhsl(252, 63%, 41%)
HSVhsv(252, 77%, 67%)
CMYKcmyk(62.2%, 77.3%, 0%, 32.5%)
CIE-LABlab(28.25, 48.01, -66.40)
CIE-LCHlch(28.25, 81.94, 305.87°)
OKLaboklab(40.29% 0.0409 -0.1915)
OKLCHoklch(40.29% 0.196 282)
XYZxyz(10.3496, 5.5527, 39.5481)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4127AC #92AC27
analogous
#2750AC #4127AC #8427AC
triadic
#4127AC #AC4127 #27AC41
tetradic
#4127AC #AC2750 #92AC27 #27AC84
square
#4127AC #AC2750 #92AC27 #27AC84
split-complementary
#4127AC #AC8427 #50AC27
monochromatic
#1B1048 #2E1C7A #4127AC #5A3DD3 #856FDE

Accessibility & contrast

On white

9.95
#4127AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4127AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4127AC
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4127AC#FFFFFF#000000##FFFFFF
##4127AC1.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B0
Deuteranopia (green-blind)
#003EAA
Tritanopia (blue-blind)
#004E68
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4127ac;
/* rgb */ color: rgb(65, 39, 172);
/* oklch */ color: oklch(40.3% 0.196 282.0);
Tailwind
colors: {
  custom: {
    50: '#8365c6',
    500: '#4127ac',
    950: '#000000',
  },
}
SCSS
$custom: #4127ac;
$custom-light: #8365c6;
$custom-dark: #000000;
JSON
{
  "hex": "#4127ac",
  "rgb": {
    "r": 65,
    "g": 39,
    "b": 172
  },
  "hsl": {
    "h": 251.729,
    "s": 63.033,
    "l": 41.373
  },
  "oklch": {
    "l": 0.40287,
    "c": 0.19582,
    "h": 282
  },
  "luminance": 0.05553
}

Semantic roles & 50–950 ramp

primary
#4127AC
secondary
#B3C56A
accent
#E642C6
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4127AC

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

Preview Lab → · Contrast checker → · Palette generator →

#4127AC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva