#42145A#42145A

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

Color values

HEX#42145A
RGBrgb(66, 20, 90)
HSLhsl(279, 64%, 22%)
HSVhsv(279, 78%, 35%)
CMYKcmyk(26.7%, 77.8%, 0%, 64.7%)
CIE-LABlab(17.45, 34.58, -32.28)
CIE-LCHlch(17.45, 47.30, 316.96°)
OKLaboklab(30.37% 0.0801 -0.0913)
OKLCHoklch(30.37% 0.121 311.3)
XYZxyz(4.3420, 2.3969, 9.9048)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42145A #2C5A14
analogous
#1F145A #42145A #5A144F
triadic
#42145A #5A4214 #145A42
tetradic
#42145A #5A1F14 #2C5A14 #144F5A
square
#42145A #5A1F14 #2C5A14 #144F5A
split-complementary
#42145A #4F5A14 #145A1F
monochromatic
#120619 #1D0928 #42145A #671F8C #8B2ABE

Accessibility & contrast

On white

14.19
#42145A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42145A
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42145A#FFFFFF#000000##FFFFFF
##42145A1.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295C
Deuteranopia (green-blind)
#092C58
Tritanopia (blue-blind)
#3F2435
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #42145a;
/* rgb */ color: rgb(66, 20, 90);
/* oklch */ color: oklch(30.4% 0.121 311.3);
Tailwind
colors: {
  custom: {
    50: '#795689',
    500: '#42145a',
    950: '#000000',
  },
}
SCSS
$custom: #42145a;
$custom-light: #795689;
$custom-dark: #000000;
JSON
{
  "hex": "#42145a",
  "rgb": {
    "r": 66,
    "g": 20,
    "b": 90
  },
  "hsl": {
    "h": 279.429,
    "s": 63.636,
    "l": 21.569
  },
  "oklch": {
    "l": 0.30368,
    "c": 0.12147,
    "h": 311.3
  },
  "luminance": 0.02397
}

Semantic roles & 50–950 ramp

primary
#42145A
secondary
#579238
accent
#E7417A
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #42145A

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

Preview Lab → · Contrast checker → · Palette generator →

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