#42155C#42155C

#42155C is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.6% C 0.122 H 310.0°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#42155C
RGBrgb(66, 21, 92)
HSLhsl(278, 63%, 22%)
HSVhsv(278, 77%, 36%)
CMYKcmyk(28.3%, 77.2%, 0%, 63.9%)
CIE-LABlab(17.77, 34.60, -33.10)
CIE-LCHlch(17.77, 47.88, 316.27°)
OKLaboklab(30.65% 0.0786 -0.0937)
OKLCHoklch(30.65% 0.122 310)
XYZxyz(4.4463, 2.4674, 10.3652)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42155C #2F5C15
analogous
#1E155C #42155C #5C1553
triadic
#42155C #5C4215 #155C42
tetradic
#42155C #5C1E15 #2F5C15 #15535C
square
#42155C #5C1E15 #2F5C15 #15535C
split-complementary
#42155C #535C15 #155C1E
monochromatic
#120619 #1E0A2A #42155C #66208E #892CC0

Accessibility & contrast

On white

14.06
#42155C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42155C
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42155C#FFFFFF#000000##FFFFFF
##42155C1.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5E
Deuteranopia (green-blind)
#072C5A
Tritanopia (blue-blind)
#3E2537
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #42155c;
/* rgb */ color: rgb(66, 21, 92);
/* oklch */ color: oklch(30.6% 0.122 310.0);
Tailwind
colors: {
  custom: {
    50: '#7a578b',
    500: '#42155c',
    950: '#000000',
  },
}
SCSS
$custom: #42155c;
$custom-light: #7a578b;
$custom-dark: #000000;
JSON
{
  "hex": "#42155c",
  "rgb": {
    "r": 66,
    "g": 21,
    "b": 92
  },
  "hsl": {
    "h": 278.028,
    "s": 62.832,
    "l": 22.157
  },
  "oklch": {
    "l": 0.30649,
    "c": 0.12233,
    "h": 310
  },
  "luminance": 0.02467
}

Semantic roles & 50–950 ramp

primary
#42155C
secondary
#5A9339
accent
#E6427E
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #42155C

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

Preview Lab → · Contrast checker → · Palette generator →

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