#42167F#42167F

#42167F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.160 H 295.3°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#42167F
RGBrgb(66, 22, 127)
HSLhsl(265, 70%, 29%)
HSVhsv(265, 83%, 50%)
CMYKcmyk(48%, 82.7%, 0%, 50.2%)
CIE-LABlab(21.07, 43.23, -50.47)
CIE-LCHlch(21.07, 66.45, 310.58°)
OKLaboklab(33.94% 0.0683 -0.1447)
OKLCHoklch(33.94% 0.16 295.3)
XYZxyz(6.3634, 3.2642, 20.3693)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42167F #537F16
analogous
#161E7F #42167F #77167F
triadic
#42167F #7F4216 #167F42
tetradic
#42167F #7F161E #537F16 #167F77
square
#42167F #7F161E #537F16 #167F77
split-complementary
#42167F #7F7716 #1E7F16
monochromatic
#0E051A #270D4B #42167F #5D1FB3 #7A34DC

Accessibility & contrast

On white

12.71
#42167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#42167F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42167F
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42167F#FFFFFF#000000##FFFFFF
##42167F1.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#00317D
Tritanopia (blue-blind)
#30344B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #42167f;
/* rgb */ color: rgb(66, 22, 127);
/* oklch */ color: oklch(33.9% 0.160 295.3);
Tailwind
colors: {
  custom: {
    50: '#7e5aa5',
    500: '#42167f',
    950: '#000000',
  },
}
SCSS
$custom: #42167f;
$custom-light: #7e5aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#42167f",
  "rgb": {
    "r": 66,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 265.143,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33939,
    "c": 0.16007,
    "h": 295.3
  },
  "luminance": 0.03264
}

Semantic roles & 50–950 ramp

primary
#42167F
secondary
#82B43D
accent
#ED3BA2
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #42167F

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

Preview Lab → · Contrast checker → · Palette generator →

#42167F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva