#421276#421276

#421276 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.154 H 298.9°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#421276
RGBrgb(66, 18, 118)
HSLhsl(269, 74%, 27%)
HSVhsv(269, 85%, 46%)
CMYKcmyk(44.1%, 84.7%, 0%, 53.7%)
CIE-LABlab(19.63, 42.48, -47.08)
CIE-LCHlch(19.63, 63.42, 312.06°)
OKLaboklab(32.67% 0.0745 -0.1348)
OKLCHoklch(32.67% 0.154 298.9)
XYZxyz(5.7322, 2.8988, 17.3935)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421276 #467612
analogous
#121476 #421276 #741276
triadic
#421276 #764212 #127642
tetradic
#421276 #761214 #467612 #127674
square
#421276 #761214 #467612 #127674
split-complementary
#421276 #767412 #147612
monochromatic
#0F041B #240A41 #421276 #601AAB #7E25DE

Accessibility & contrast

On white

13.29
#421276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#421276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421276
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421276#FFFFFF#000000##FFFFFF
##4212761.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F79
Deuteranopia (green-blind)
#002F74
Tritanopia (blue-blind)
#352F45
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #421276;
/* rgb */ color: rgb(66, 18, 118);
/* oklch */ color: oklch(32.7% 0.154 298.9);
Tailwind
colors: {
  custom: {
    50: '#7d579e',
    500: '#421276',
    950: '#000000',
  },
}
SCSS
$custom: #421276;
$custom-light: #7d579e;
$custom-dark: #000000;
JSON
{
  "hex": "#421276",
  "rgb": {
    "r": 66,
    "g": 18,
    "b": 118
  },
  "hsl": {
    "h": 268.8,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.32673,
    "c": 0.15399,
    "h": 298.9
  },
  "luminance": 0.02899
}

Semantic roles & 50–950 ramp

primary
#421276
secondary
#74AD37
accent
#F03898
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #421276

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

Preview Lab → · Contrast checker → · Palette generator →

#421276 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva