#4127B0#4127B0

#4127B0 is a dark, highly saturated violet. Relative luminance 0.057; OKLCH L 40.7% C 0.201 H 281.4°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#4127B0
RGBrgb(65, 39, 176)
HSLhsl(251, 64%, 42%)
HSVhsv(251, 78%, 69%)
CMYKcmyk(63.1%, 77.8%, 0%, 31%)
CIE-LABlab(28.67, 49.20, -68.12)
CIE-LCHlch(28.67, 84.03, 305.84°)
OKLaboklab(40.7% 0.0398 -0.1965)
OKLCHoklch(40.7% 0.201 281.4)
XYZxyz(10.7395, 5.7086, 41.6018)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4127B0 #96B027
analogous
#2751B0 #4127B0 #8627B0
triadic
#4127B0 #B04127 #27B041
tetradic
#4127B0 #B02751 #96B027 #27B086
square
#4127B0 #B02751 #96B027 #27B086
split-complementary
#4127B0 #B08627 #51B027
monochromatic
#1C114C #2E1C7E #4127B0 #5C40D5 #8772E0

Accessibility & contrast

On white

9.80
#4127B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4127B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4127B0
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4127B0#FFFFFF#000000##FFFFFF
##4127B01.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B4
Deuteranopia (green-blind)
#003FAE
Tritanopia (blue-blind)
#004F6B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4127b0;
/* rgb */ color: rgb(65, 39, 176);
/* oklch */ color: oklch(40.7% 0.201 281.4);
Tailwind
colors: {
  custom: {
    50: '#8465c9',
    500: '#4127b0',
    950: '#000000',
  },
}
SCSS
$custom: #4127b0;
$custom-light: #8465c9;
$custom-dark: #000000;
JSON
{
  "hex": "#4127b0",
  "rgb": {
    "r": 65,
    "g": 39,
    "b": 176
  },
  "hsl": {
    "h": 251.387,
    "s": 63.721,
    "l": 42.157
  },
  "oklch": {
    "l": 0.40697,
    "c": 0.20051,
    "h": 281.4
  },
  "luminance": 0.05709
}

Semantic roles & 50–950 ramp

primary
#4127B0
secondary
#B6C76C
accent
#E741C7
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4127B0

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

Preview Lab → · Contrast checker → · Palette generator →

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