#42165F#42165F

#42165F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.0% C 0.124 H 308.3°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#42165F
RGBrgb(66, 22, 95)
HSLhsl(276, 62%, 23%)
HSVhsv(276, 77%, 37%)
CMYKcmyk(30.5%, 76.8%, 0%, 62.7%)
CIE-LABlab(18.18, 34.87, -34.43)
CIE-LCHlch(18.18, 49.00, 315.36°)
OKLaboklab(31.02% 0.077 -0.0976)
OKLCHoklch(31.02% 0.124 308.3)
XYZxyz(4.5988, 2.5584, 11.0758)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42165F #335F16
analogous
#1D165F #42165F #5F1657
triadic
#42165F #5F4216 #165F42
tetradic
#42165F #5F1D16 #335F16 #16575F
square
#42165F #5F1D16 #335F16 #16575F
split-complementary
#42165F #575F16 #165F1D
monochromatic
#110619 #1F0A2D #42165F #652291 #872DC2

Accessibility & contrast

On white

13.89
#42165F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42165F
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42165F#FFFFFF#000000##FFFFFF
##42165F1.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B61
Deuteranopia (green-blind)
#032D5D
Tritanopia (blue-blind)
#3D2739
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #42165f;
/* rgb */ color: rgb(66, 22, 95);
/* oklch */ color: oklch(31.0% 0.124 308.3);
Tailwind
colors: {
  custom: {
    50: '#7a588d',
    500: '#42165f',
    950: '#000000',
  },
}
SCSS
$custom: #42165f;
$custom-light: #7a588d;
$custom-dark: #000000;
JSON
{
  "hex": "#42165f",
  "rgb": {
    "r": 66,
    "g": 22,
    "b": 95
  },
  "hsl": {
    "h": 276.164,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.31017,
    "c": 0.12434,
    "h": 308.3
  },
  "luminance": 0.02558
}

Semantic roles & 50–950 ramp

primary
#42165F
secondary
#5F963B
accent
#E54283
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #42165F

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

Preview Lab → · Contrast checker → · Palette generator →

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