#42165E#42165E

#42165E is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.123 H 308.8°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#42165E
RGBrgb(66, 22, 94)
HSLhsl(277, 62%, 23%)
HSVhsv(277, 77%, 37%)
CMYKcmyk(29.8%, 76.6%, 0%, 63.1%)
CIE-LABlab(18.10, 34.61, -33.90)
CIE-LCHlch(18.10, 48.45, 315.60°)
OKLaboklab(30.93% 0.0772 -0.0961)
OKLCHoklch(30.93% 0.123 308.8)
XYZxyz(4.5536, 2.5403, 10.8379)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42165E #325E16
analogous
#1E165E #42165E #5E1656
triadic
#42165E #5E4216 #165E42
tetradic
#42165E #5E1E16 #325E16 #16565E
square
#42165E #5E1E16 #325E16 #16565E
split-complementary
#42165E #565E16 #165E1E
monochromatic
#110619 #1F0A2C #42165E #652290 #882DC1

Accessibility & contrast

On white

13.93
#42165E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#42165E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42165E
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42165E#FFFFFF#000000##FFFFFF
##42165E1.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A60
Deuteranopia (green-blind)
#052D5C
Tritanopia (blue-blind)
#3E2638
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #42165e;
/* rgb */ color: rgb(66, 22, 94);
/* oklch */ color: oklch(30.9% 0.123 308.8);
Tailwind
colors: {
  custom: {
    50: '#7a588c',
    500: '#42165e',
    950: '#000000',
  },
}
SCSS
$custom: #42165e;
$custom-light: #7a588c;
$custom-dark: #000000;
JSON
{
  "hex": "#42165e",
  "rgb": {
    "r": 66,
    "g": 22,
    "b": 94
  },
  "hsl": {
    "h": 276.667,
    "s": 62.069,
    "l": 22.745
  },
  "oklch": {
    "l": 0.30934,
    "c": 0.12322,
    "h": 308.8
  },
  "luminance": 0.0254
}

Semantic roles & 50–950 ramp

primary
#42165E
secondary
#5E953B
accent
#E54382
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #42165E

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

Preview Lab → · Contrast checker → · Palette generator →

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