#42145B#42145B

#42145B is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.123 H 310.7°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#42145B
RGBrgb(66, 20, 91)
HSLhsl(279, 64%, 22%)
HSVhsv(279, 78%, 36%)
CMYKcmyk(27.5%, 78%, 0%, 64.3%)
CIE-LABlab(17.53, 34.82, -32.82)
CIE-LCHlch(17.53, 47.85, 316.69°)
OKLaboklab(30.45% 0.0799 -0.0929)
OKLCHoklch(30.45% 0.123 310.7)
XYZxyz(4.3849, 2.4140, 10.1305)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42145B #2D5B14
analogous
#1F145B #42145B #5B1451
triadic
#42145B #5B4214 #145B42
tetradic
#42145B #5B1F14 #2D5B14 #14515B
square
#42145B #5B1F14 #2D5B14 #14515B
split-complementary
#42145B #515B14 #145B1F
monochromatic
#120619 #1E0929 #42145B #661F8D #8B2ABF

Accessibility & contrast

On white

14.16
#42145B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#42145B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42145B
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42145B#FFFFFF#000000##FFFFFF
##42145B1.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295D
Deuteranopia (green-blind)
#072C59
Tritanopia (blue-blind)
#3F2436
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #42145b;
/* rgb */ color: rgb(66, 20, 91);
/* oklch */ color: oklch(30.4% 0.123 310.7);
Tailwind
colors: {
  custom: {
    50: '#7a578a',
    500: '#42145b',
    950: '#000000',
  },
}
SCSS
$custom: #42145b;
$custom-light: #7a578a;
$custom-dark: #000000;
JSON
{
  "hex": "#42145b",
  "rgb": {
    "r": 66,
    "g": 20,
    "b": 91
  },
  "hsl": {
    "h": 278.873,
    "s": 63.964,
    "l": 21.765
  },
  "oklch": {
    "l": 0.3045,
    "c": 0.12255,
    "h": 310.7
  },
  "luminance": 0.02414
}

Semantic roles & 50–950 ramp

primary
#42145B
secondary
#589338
accent
#E7417B
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #42145B

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

Preview Lab → · Contrast checker → · Palette generator →

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