#42145C#42145C

#42145C is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.124 H 310.2°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#42145C
RGBrgb(66, 20, 92)
HSLhsl(278, 64%, 22%)
HSVhsv(278, 78%, 36%)
CMYKcmyk(28.3%, 78.3%, 0%, 63.9%)
CIE-LABlab(17.61, 35.06, -33.36)
CIE-LCHlch(17.61, 48.40, 316.42°)
OKLaboklab(30.53% 0.0798 -0.0945)
OKLCHoklch(30.53% 0.124 310.2)
XYZxyz(4.4283, 2.4314, 10.3592)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42145C #2E5C14
analogous
#1E145C #42145C #5C1452
triadic
#42145C #5C4214 #145C42
tetradic
#42145C #5C1E14 #2E5C14 #14525C
square
#42145C #5C1E14 #2E5C14 #14525C
split-complementary
#42145C #525C14 #145C1E
monochromatic
#120519 #1E092A #42145C #661F8E #8A2AC1

Accessibility & contrast

On white

14.13
#42145C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#42145C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42145C
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42145C#FFFFFF#000000##FFFFFF
##42145C1.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295E
Deuteranopia (green-blind)
#052C5A
Tritanopia (blue-blind)
#3E2437
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #42145c;
/* rgb */ color: rgb(66, 20, 92);
/* oklch */ color: oklch(30.5% 0.124 310.2);
Tailwind
colors: {
  custom: {
    50: '#7a578b',
    500: '#42145c',
    950: '#000000',
  },
}
SCSS
$custom: #42145c;
$custom-light: #7a578b;
$custom-dark: #000000;
JSON
{
  "hex": "#42145c",
  "rgb": {
    "r": 66,
    "g": 20,
    "b": 92
  },
  "hsl": {
    "h": 278.333,
    "s": 64.286,
    "l": 21.961
  },
  "oklch": {
    "l": 0.30532,
    "c": 0.12365,
    "h": 310.2
  },
  "luminance": 0.02431
}

Semantic roles & 50–950 ramp

primary
#42145C
secondary
#599438
accent
#E7417D
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #42145C

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

Preview Lab → · Contrast checker → · Palette generator →

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