#4127B5#4127B5

#4127B5 is a dark, highly saturated violet. Relative luminance 0.059; OKLCH L 41.2% C 0.206 H 280.7°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#4127B5
RGBrgb(65, 39, 181)
HSLhsl(251, 65%, 43%)
HSVhsv(251, 78%, 71%)
CMYKcmyk(64.1%, 78.5%, 0%, 29%)
CIE-LABlab(29.18, 50.68, -70.24)
CIE-LCHlch(29.18, 86.62, 305.81°)
OKLaboklab(41.21% 0.0384 -0.2027)
OKLCHoklch(41.21% 0.206 280.7)
XYZxyz(11.2433, 5.9102, 44.2554)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4127B5 #9BB527
analogous
#2754B5 #4127B5 #8827B5
triadic
#4127B5 #B54127 #27B541
tetradic
#4127B5 #B52754 #9BB527 #27B588
square
#4127B5 #B52754 #9BB527 #27B588
split-complementary
#4127B5 #B58827 #54B527
monochromatic
#1D1150 #2F1C83 #4127B5 #5E43D6 #8975E1

Accessibility & contrast

On white

9.62
#4127B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#4127B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4127B5
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4127B5#FFFFFF#000000##FFFFFF
##4127B51.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB9
Deuteranopia (green-blind)
#003FB2
Tritanopia (blue-blind)
#00516E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4127b5;
/* rgb */ color: rgb(65, 39, 181);
/* oklch */ color: oklch(41.2% 0.206 280.7);
Tailwind
colors: {
  custom: {
    50: '#8566cc',
    500: '#4127b5',
    950: '#000000',
  },
}
SCSS
$custom: #4127b5;
$custom-light: #8566cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4127b5",
  "rgb": {
    "r": 65,
    "g": 39,
    "b": 181
  },
  "hsl": {
    "h": 250.986,
    "s": 64.545,
    "l": 43.137
  },
  "oklch": {
    "l": 0.41214,
    "c": 0.20633,
    "h": 280.7
  },
  "luminance": 0.05911
}

Semantic roles & 50–950 ramp

primary
#4127B5
secondary
#B8C96F
accent
#E840C9
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #4127B5

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

Preview Lab → · Contrast checker → · Palette generator →

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