#42147F#42147F

#42147F is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.162 H 295.6°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#42147F
RGBrgb(66, 20, 127)
HSLhsl(266, 73%, 29%)
HSVhsv(266, 84%, 50%)
CMYKcmyk(48%, 84.3%, 0%, 50.2%)
CIE-LABlab(20.79, 44.05, -50.93)
CIE-LCHlch(20.79, 67.33, 310.86°)
OKLaboklab(33.75% 0.0698 -0.1461)
OKLCHoklch(33.75% 0.162 295.6)
XYZxyz(6.3267, 3.1907, 20.3571)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42147F #517F14
analogous
#141C7F #42147F #78147F
triadic
#42147F #7F4214 #147F42
tetradic
#42147F #7F141C #517F14 #147F78
square
#42147F #7F141C #517F14 #147F78
split-complementary
#42147F #7F7814 #1C7F14
monochromatic
#0E041A #270C4A #42147F #5D1CB4 #7A2FDE

Accessibility & contrast

On white

12.82
#42147F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#42147F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42147F
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42147F#FFFFFF#000000##FFFFFF
##42147F1.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#30334B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #42147f;
/* rgb */ color: rgb(66, 20, 127);
/* oklch */ color: oklch(33.7% 0.162 295.6);
Tailwind
colors: {
  custom: {
    50: '#7e59a5',
    500: '#42147f',
    950: '#000000',
  },
}
SCSS
$custom: #42147f;
$custom-light: #7e59a5;
$custom-dark: #000000;
JSON
{
  "hex": "#42147f",
  "rgb": {
    "r": 66,
    "g": 20,
    "b": 127
  },
  "hsl": {
    "h": 265.794,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33745,
    "c": 0.16189,
    "h": 295.6
  },
  "luminance": 0.03191
}

Semantic roles & 50–950 ramp

primary
#42147F
secondary
#80B43B
accent
#EF38A1
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #42147F

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

Preview Lab → · Contrast checker → · Palette generator →

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