#4128AC#4128AC

#4128AC is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.195 H 281.9°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#4128AC
RGBrgb(65, 40, 172)
HSLhsl(251, 62%, 42%)
HSVhsv(251, 77%, 67%)
CMYKcmyk(62.2%, 76.7%, 0%, 32.5%)
CIE-LABlab(28.43, 47.51, -66.11)
CIE-LCHlch(28.43, 81.41, 305.70°)
OKLaboklab(40.41% 0.0402 -0.1907)
OKLCHoklch(40.41% 0.195 281.9)
XYZxyz(10.3828, 5.6192, 39.5592)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4128AC #93AC28
analogous
#2851AC #4128AC #8328AC
triadic
#4128AC #AC4128 #28AC41
tetradic
#4128AC #AC2851 #93AC28 #28AC83
square
#4128AC #AC2851 #93AC28 #28AC83
split-complementary
#4128AC #AC8328 #51AC28
monochromatic
#1B1149 #2E1C7A #4128AC #5B3FD2 #8571DE

Accessibility & contrast

On white

9.89
#4128AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4128AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4128AC
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4128AC#FFFFFF#000000##FFFFFF
##4128AC1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B0
Deuteranopia (green-blind)
#003EAA
Tritanopia (blue-blind)
#004E69
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4128ac;
/* rgb */ color: rgb(65, 40, 172);
/* oklch */ color: oklch(40.4% 0.195 281.9);
Tailwind
colors: {
  custom: {
    50: '#8366c6',
    500: '#4128ac',
    950: '#000000',
  },
}
SCSS
$custom: #4128ac;
$custom-light: #8366c6;
$custom-dark: #000000;
JSON
{
  "hex": "#4128ac",
  "rgb": {
    "r": 65,
    "g": 40,
    "b": 172
  },
  "hsl": {
    "h": 251.364,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.4041,
    "c": 0.19488,
    "h": 281.9
  },
  "luminance": 0.0562
}

Semantic roles & 50–950 ramp

primary
#4128AC
secondary
#B4C56B
accent
#E542C6
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4128AC

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

Preview Lab → · Contrast checker → · Palette generator →

#4128AC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva