#42145F#42145F

#42145F is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.127 H 308.6°. Best body text is #FFFFFF at 14.03:1 contrast (WCAG AA passes).

Color values

HEX#42145F
RGBrgb(66, 20, 95)
HSLhsl(277, 65%, 23%)
HSVhsv(277, 79%, 37%)
CMYKcmyk(30.5%, 78.9%, 0%, 62.7%)
CIE-LABlab(17.85, 35.80, -34.96)
CIE-LCHlch(17.85, 50.04, 315.68°)
OKLaboklab(30.78% 0.0792 -0.0992)
OKLCHoklch(30.78% 0.127 308.6)
XYZxyz(4.5621, 2.4849, 11.0636)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42145F #315F14
analogous
#1D145F #42145F #5F1456
triadic
#42145F #5F4214 #145F42
tetradic
#42145F #5F1D14 #315F14 #14565F
square
#42145F #5F1D14 #315F14 #14565F
split-complementary
#42145F #565F14 #145F1D
monochromatic
#120519 #1F092C #42145F #651F92 #8829C4

Accessibility & contrast

On white

14.03
#42145F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#42145F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42145F
14.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42145F#FFFFFF#000000##FFFFFF
##42145F1.0014.031.5014.03
#FFFFFF14.031.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A61
Deuteranopia (green-blind)
#002C5D
Tritanopia (blue-blind)
#3D2638
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #42145f;
/* rgb */ color: rgb(66, 20, 95);
/* oklch */ color: oklch(30.8% 0.127 308.6);
Tailwind
colors: {
  custom: {
    50: '#7a578d',
    500: '#42145f',
    950: '#000000',
  },
}
SCSS
$custom: #42145f;
$custom-light: #7a578d;
$custom-dark: #000000;
JSON
{
  "hex": "#42145f",
  "rgb": {
    "r": 66,
    "g": 20,
    "b": 95
  },
  "hsl": {
    "h": 276.8,
    "s": 65.217,
    "l": 22.549
  },
  "oklch": {
    "l": 0.30782,
    "c": 0.12693,
    "h": 308.6
  },
  "luminance": 0.02485
}

Semantic roles & 50–950 ramp

primary
#42145F
secondary
#5D9738
accent
#E84081
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #42145F

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

Preview Lab → · Contrast checker → · Palette generator →

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