#4127AD#4127AD

#4127AD is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.197 H 281.9°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#4127AD
RGBrgb(65, 39, 173)
HSLhsl(252, 63%, 42%)
HSVhsv(252, 77%, 68%)
CMYKcmyk(62.4%, 77.5%, 0%, 32.2%)
CIE-LABlab(28.36, 48.31, -66.83)
CIE-LCHlch(28.36, 82.46, 305.86°)
OKLaboklab(40.39% 0.0406 -0.1928)
OKLCHoklch(40.39% 0.197 281.9)
XYZxyz(10.4460, 5.5912, 40.0558)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4127AD #93AD27
analogous
#2750AD #4127AD #8427AD
triadic
#4127AD #AD4127 #27AD41
tetradic
#4127AD #AD2750 #93AD27 #27AD84
square
#4127AD #AD2750 #93AD27 #27AD84
split-complementary
#4127AD #AD8427 #50AD27
monochromatic
#1B1049 #2E1C7B #4127AD #5B3ED3 #8570DF

Accessibility & contrast

On white

9.91
#4127AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4127AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4127AD
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4127AD#FFFFFF#000000##FFFFFF
##4127AD1.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B1
Deuteranopia (green-blind)
#003EAB
Tritanopia (blue-blind)
#004E69
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4127ad;
/* rgb */ color: rgb(65, 39, 173);
/* oklch */ color: oklch(40.4% 0.197 281.9);
Tailwind
colors: {
  custom: {
    50: '#8465c7',
    500: '#4127ad',
    950: '#000000',
  },
}
SCSS
$custom: #4127ad;
$custom-light: #8465c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4127ad",
  "rgb": {
    "r": 65,
    "g": 39,
    "b": 173
  },
  "hsl": {
    "h": 251.642,
    "s": 63.208,
    "l": 41.569
  },
  "oklch": {
    "l": 0.40389,
    "c": 0.19699,
    "h": 281.9
  },
  "luminance": 0.05592
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4127AD

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

Preview Lab → · Contrast checker → · Palette generator →

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