#4128AE#4128AE

#4128AE is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.6% C 0.197 H 281.6°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#4128AE
RGBrgb(65, 40, 174)
HSLhsl(251, 63%, 42%)
HSVhsv(251, 77%, 68%)
CMYKcmyk(62.6%, 77%, 0%, 31.8%)
CIE-LABlab(28.63, 48.11, -66.97)
CIE-LCHlch(28.63, 82.46, 305.69°)
OKLaboklab(40.61% 0.0397 -0.1932)
OKLCHoklch(40.61% 0.197 281.6)
XYZxyz(10.5763, 5.6966, 40.5784)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4128AE #95AE28
analogous
#2852AE #4128AE #8428AE
triadic
#4128AE #AE4128 #28AE41
tetradic
#4128AE #AE2852 #95AE28 #28AE84
square
#4128AE #AE2852 #95AE28 #28AE84
split-complementary
#4128AE #AE8428 #52AE28
monochromatic
#1C114A #2E1D7C #4128AE #5C40D3 #8672DF

Accessibility & contrast

On white

9.82
#4128AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4128AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4128AE
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4128AE#FFFFFF#000000##FFFFFF
##4128AE1.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B2
Deuteranopia (green-blind)
#003FAC
Tritanopia (blue-blind)
#004F6A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4128ae;
/* rgb */ color: rgb(65, 40, 174);
/* oklch */ color: oklch(40.6% 0.197 281.6);
Tailwind
colors: {
  custom: {
    50: '#8466c7',
    500: '#4128ae',
    950: '#000000',
  },
}
SCSS
$custom: #4128ae;
$custom-light: #8466c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4128ae",
  "rgb": {
    "r": 65,
    "g": 40,
    "b": 174
  },
  "hsl": {
    "h": 251.194,
    "s": 62.617,
    "l": 41.961
  },
  "oklch": {
    "l": 0.40613,
    "c": 0.19723,
    "h": 281.6
  },
  "luminance": 0.05697
}

Semantic roles & 50–950 ramp

primary
#4128AE
secondary
#B5C66C
accent
#E642C7
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4128AE

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

Preview Lab → · Contrast checker → · Palette generator →

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