#42117E#42117E

#42117E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.163 H 296.2°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#42117E
RGBrgb(66, 17, 126)
HSLhsl(267, 76%, 28%)
HSVhsv(267, 87%, 49%)
CMYKcmyk(47.6%, 86.5%, 0%, 50.6%)
CIE-LABlab(20.30, 44.92, -51.09)
CIE-LCHlch(20.30, 68.03, 311.32°)
OKLaboklab(33.38% 0.0723 -0.1465)
OKLCHoklch(33.38% 0.163 296.2)
XYZxyz(6.2121, 3.0654, 19.9990)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42117E #4D7E11
analogous
#11177E #42117E #78117E
triadic
#42117E #7E4211 #117E42
tetradic
#42117E #7E1117 #4D7E11 #117E78
square
#42117E #7E1117 #4D7E11 #117E78
split-complementary
#42117E #7E7811 #177E11
monochromatic
#0E041B #260A48 #42117E #5E18B4 #7B27E2

Accessibility & contrast

On white

13.02
#42117E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#42117E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42117E
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42117E#FFFFFF#000000##FFFFFF
##42117E1.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#313249
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #42117e;
/* rgb */ color: rgb(66, 17, 126);
/* oklch */ color: oklch(33.4% 0.163 296.2);
Tailwind
colors: {
  custom: {
    50: '#7e57a4',
    500: '#42117e',
    950: '#000000',
  },
}
SCSS
$custom: #42117e;
$custom-light: #7e57a4;
$custom-dark: #000000;
JSON
{
  "hex": "#42117e",
  "rgb": {
    "r": 66,
    "g": 17,
    "b": 126
  },
  "hsl": {
    "h": 266.972,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.33378,
    "c": 0.16337,
    "h": 296.2
  },
  "luminance": 0.03066
}

Semantic roles & 50–950 ramp

primary
#42117E
secondary
#7CB437
accent
#F3359D
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #42117E

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

Preview Lab → · Contrast checker → · Palette generator →

#42117E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva