#4127A2#4127A2

#4127A2 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.184 H 283.7°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#4127A2
RGBrgb(65, 39, 162)
HSLhsl(253, 61%, 39%)
HSVhsv(253, 76%, 64%)
CMYKcmyk(59.9%, 75.9%, 0%, 36.5%)
CIE-LABlab(27.25, 45.01, -62.02)
CIE-LCHlch(27.25, 76.63, 305.97°)
OKLaboklab(39.28% 0.0435 -0.1787)
OKLCHoklch(39.28% 0.184 283.7)
XYZxyz(9.4251, 5.1829, 34.6792)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4127A2 #88A227
analogous
#274BA2 #4127A2 #7F27A2
triadic
#4127A2 #A24127 #27A241
tetradic
#4127A2 #A2274B #88A227 #27A27F
square
#4127A2 #A2274B #88A227 #27A27F
split-complementary
#4127A2 #A27F27 #4BA227
monochromatic
#190F3F #2D1B71 #4127A2 #5737CF #8169DB

Accessibility & contrast

On white

10.31
#4127A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4127A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4127A2
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4127A2#FFFFFF#000000##FFFFFF
##4127A21.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A6
Deuteranopia (green-blind)
#003CA0
Tritanopia (blue-blind)
#014A63
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4127a2;
/* rgb */ color: rgb(65, 39, 162);
/* oklch */ color: oklch(39.3% 0.184 283.7);
Tailwind
colors: {
  custom: {
    50: '#8164bf',
    500: '#4127a2',
    950: '#000000',
  },
}
SCSS
$custom: #4127a2;
$custom-light: #8164bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4127a2",
  "rgb": {
    "r": 65,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 252.683,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.3928,
    "c": 0.18394,
    "h": 283.7
  },
  "luminance": 0.05183
}

Semantic roles & 50–950 ramp

primary
#4127A2
secondary
#ADC164
accent
#E443C2
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4127A2

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

Preview Lab → · Contrast checker → · Palette generator →

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