#42278F#42278F

#42278F is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.5% C 0.161 H 288.0°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#42278F
RGBrgb(66, 39, 143)
HSLhsl(256, 57%, 36%)
HSVhsv(256, 73%, 56%)
CMYKcmyk(53.8%, 72.7%, 0%, 43.9%)
CIE-LABlab(25.54, 39.42, -53.17)
CIE-LCHlch(25.54, 66.19, 306.55°)
OKLaboklab(37.54% 0.0495 -0.1528)
OKLCHoklch(37.54% 0.161 288)
XYZxyz(7.9288, 4.5921, 26.4499)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42278F #748F27
analogous
#27408F #42278F #76278F
triadic
#42278F #8F4227 #278F42
tetradic
#42278F #8F2740 #748F27 #278F76
square
#42278F #8F2740 #748F27 #278F76
split-complementary
#42278F #8F7627 #408F27
monochromatic
#160D2F #2C1A5F #42278F #5834BF #7C5DD3

Accessibility & contrast

On white

10.95
#42278F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#42278F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42278F
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42278F#FFFFFF#000000##FFFFFF
##42278F1.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F92
Deuteranopia (green-blind)
#003A8D
Tritanopia (blue-blind)
#244258
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #42278f;
/* rgb */ color: rgb(66, 39, 143);
/* oklch */ color: oklch(37.5% 0.161 288.0);
Tailwind
colors: {
  custom: {
    50: '#7f64b1',
    500: '#42278f',
    950: '#000000',
  },
}
SCSS
$custom: #42278f;
$custom-light: #7f64b1;
$custom-dark: #000000;
JSON
{
  "hex": "#42278f",
  "rgb": {
    "r": 66,
    "g": 39,
    "b": 143
  },
  "hsl": {
    "h": 255.577,
    "s": 57.143,
    "l": 35.686
  },
  "oklch": {
    "l": 0.37543,
    "c": 0.16061,
    "h": 288
  },
  "luminance": 0.04592
}

Semantic roles & 50–950 ramp

primary
#42278F
secondary
#A0B85A
accent
#E047B9
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #42278F

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

Preview Lab → · Contrast checker → · Palette generator →

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