#4127BA#4127BA

#4127BA is a dark, highly saturated violet. Relative luminance 0.061; OKLCH L 41.7% C 0.212 H 280.0°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#4127BA
RGBrgb(65, 39, 186)
HSLhsl(251, 65%, 44%)
HSVhsv(251, 79%, 73%)
CMYKcmyk(65.1%, 79%, 0%, 27.1%)
CIE-LABlab(29.71, 52.16, -72.34)
CIE-LCHlch(29.71, 89.19, 305.79°)
OKLaboklab(41.74% 0.0369 -0.2088)
OKLCHoklch(41.74% 0.212 280)
XYZxyz(11.7656, 6.1191, 47.0059)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4127BA #A0BA27
analogous
#2757BA #4127BA #8B27BA
triadic
#4127BA #BA4127 #27BA41
tetradic
#4127BA #BA2757 #A0BA27 #27BA8B
square
#4127BA #BA2757 #A0BA27 #27BA8B
split-complementary
#4127BA #BA8B27 #57BA27
monochromatic
#1E1255 #2F1C87 #4127BA #6046D8 #8B79E3

Accessibility & contrast

On white

9.44
#4127BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#4127BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4127BA
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4127BA#FFFFFF#000000##FFFFFF
##4127BA1.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BBE
Deuteranopia (green-blind)
#0040B7
Tritanopia (blue-blind)
#005370
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4127ba;
/* rgb */ color: rgb(65, 39, 186);
/* oklch */ color: oklch(41.7% 0.212 280.0);
Tailwind
colors: {
  custom: {
    50: '#8666d0',
    500: '#4127ba',
    950: '#000000',
  },
}
SCSS
$custom: #4127ba;
$custom-light: #8666d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4127ba",
  "rgb": {
    "r": 65,
    "g": 39,
    "b": 186
  },
  "hsl": {
    "h": 250.612,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.41737,
    "c": 0.21209,
    "h": 280
  },
  "luminance": 0.0612
}

Semantic roles & 50–950 ramp

primary
#4127BA
secondary
#BBCB72
accent
#E840CA
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #4127BA

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

Preview Lab → · Contrast checker → · Palette generator →

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