#42165B#42165B

#42165B is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.7% C 0.120 H 310.4°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#42165B
RGBrgb(66, 22, 91)
HSLhsl(278, 61%, 22%)
HSVhsv(278, 76%, 36%)
CMYKcmyk(27.5%, 75.8%, 0%, 64.3%)
CIE-LABlab(17.86, 33.87, -32.28)
CIE-LCHlch(17.86, 46.79, 316.38°)
OKLaboklab(30.69% 0.0776 -0.0913)
OKLCHoklch(30.69% 0.12 310.4)
XYZxyz(4.4216, 2.4875, 10.1427)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42165B #2F5B16
analogous
#20165B #42165B #5B1652
triadic
#42165B #5B4216 #165B42
tetradic
#42165B #5B2016 #2F5B16 #16525B
square
#42165B #5B2016 #2F5B16 #16525B
split-complementary
#42165B #525B16 #165B20
monochromatic
#120619 #1E0A2A #42165B #66228C #892EBE

Accessibility & contrast

On white

14.02
#42165B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#42165B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42165B
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42165B#FFFFFF#000000##FFFFFF
##42165B1.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5D
Deuteranopia (green-blind)
#0A2C59
Tritanopia (blue-blind)
#3F2537
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #42165b;
/* rgb */ color: rgb(66, 22, 91);
/* oklch */ color: oklch(30.7% 0.120 310.4);
Tailwind
colors: {
  custom: {
    50: '#79588a',
    500: '#42165b',
    950: '#000000',
  },
}
SCSS
$custom: #42165b;
$custom-light: #79588a;
$custom-dark: #000000;
JSON
{
  "hex": "#42165b",
  "rgb": {
    "r": 66,
    "g": 22,
    "b": 91
  },
  "hsl": {
    "h": 278.261,
    "s": 61.062,
    "l": 22.157
  },
  "oklch": {
    "l": 0.30689,
    "c": 0.11986,
    "h": 310.4
  },
  "luminance": 0.02487
}

Semantic roles & 50–950 ramp

primary
#42165B
secondary
#5A923B
accent
#E4447E
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #42165B

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

Preview Lab → · Contrast checker → · Palette generator →

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