#421874#421874

#421874 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.146 H 298.8°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#421874
RGBrgb(66, 24, 116)
HSLhsl(267, 66%, 27%)
HSVhsv(267, 79%, 45%)
CMYKcmyk(43.1%, 79.3%, 0%, 54.5%)
CIE-LABlab(20.33, 39.40, -44.65)
CIE-LCHlch(20.33, 59.55, 311.42°)
OKLaboklab(33.1% 0.0701 -0.1277)
OKLCHoklch(33.1% 0.146 298.8)
XYZxyz(5.7250, 3.0724, 16.8110)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421874 #4A7418
analogous
#181C74 #421874 #701874
triadic
#421874 #744218 #187442
tetradic
#421874 #74181C #4A7418 #187470
square
#421874 #74181C #4A7418 #187470
split-complementary
#421874 #747018 #1C7418
monochromatic
#0E0519 #250E41 #421874 #5F22A7 #7C32D5

Accessibility & contrast

On white

13.01
#421874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#421874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421874
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421874#FFFFFF#000000##FFFFFF
##4218741.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003177
Deuteranopia (green-blind)
#003072
Tritanopia (blue-blind)
#363045
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #421874;
/* rgb */ color: rgb(66, 24, 116);
/* oklch */ color: oklch(33.1% 0.146 298.8);
Tailwind
colors: {
  custom: {
    50: '#7c5a9d',
    500: '#421874',
    950: '#000000',
  },
}
SCSS
$custom: #421874;
$custom-light: #7c5a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#421874",
  "rgb": {
    "r": 66,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 267.391,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.33102,
    "c": 0.14567,
    "h": 298.8
  },
  "luminance": 0.03072
}

Semantic roles & 50–950 ramp

primary
#421874
secondary
#79A93F
accent
#E93F9B
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #421874

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

Preview Lab → · Contrast checker → · Palette generator →

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