#4127A4#4127A4

#4127A4 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.5% C 0.186 H 283.3°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#4127A4
RGBrgb(65, 39, 164)
HSLhsl(252, 62%, 40%)
HSVhsv(252, 76%, 64%)
CMYKcmyk(60.4%, 76.2%, 0%, 35.7%)
CIE-LABlab(27.45, 45.61, -62.90)
CIE-LCHlch(27.45, 77.70, 305.95°)
OKLaboklab(39.48% 0.043 -0.1813)
OKLCHoklch(39.48% 0.186 283.3)
XYZxyz(9.6043, 5.2546, 35.6229)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4127A4 #8AA427
analogous
#274CA4 #4127A4 #8027A4
triadic
#4127A4 #A44127 #27A441
tetradic
#4127A4 #A4274C #8AA427 #27A480
square
#4127A4 #A4274C #8AA427 #27A480
split-complementary
#4127A4 #A48027 #4CA427
monochromatic
#1A0F41 #2D1B73 #4127A4 #5838D0 #826ADC

Accessibility & contrast

On white

10.24
#4127A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4127A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4127A4
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4127A4#FFFFFF#000000##FFFFFF
##4127A41.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A8
Deuteranopia (green-blind)
#003DA2
Tritanopia (blue-blind)
#004B64
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4127a4;
/* rgb */ color: rgb(65, 39, 164);
/* oklch */ color: oklch(39.5% 0.186 283.3);
Tailwind
colors: {
  custom: {
    50: '#8265c0',
    500: '#4127a4',
    950: '#000000',
  },
}
SCSS
$custom: #4127a4;
$custom-light: #8265c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4127a4",
  "rgb": {
    "r": 65,
    "g": 39,
    "b": 164
  },
  "hsl": {
    "h": 252.48,
    "s": 61.576,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39479,
    "c": 0.18634,
    "h": 283.3
  },
  "luminance": 0.05255
}

Semantic roles & 50–950 ramp

primary
#4127A4
secondary
#AEC265
accent
#E543C3
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4127A4

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

Preview Lab → · Contrast checker → · Palette generator →

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