#42278E#42278E

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

Color values

HEX#42278E
RGBrgb(66, 39, 142)
HSLhsl(256, 57%, 35%)
HSVhsv(256, 73%, 56%)
CMYKcmyk(53.5%, 72.5%, 0%, 44.3%)
CIE-LABlab(25.45, 39.12, -52.70)
CIE-LCHlch(25.45, 65.63, 306.59°)
OKLaboklab(37.45% 0.0497 -0.1514)
OKLCHoklch(37.45% 0.159 288.2)
XYZxyz(7.8533, 4.5619, 26.0527)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42278E #738E27
analogous
#273F8E #42278E #75278E
triadic
#42278E #8E4227 #278E42
tetradic
#42278E #8E273F #738E27 #278E75
square
#42278E #8E273F #738E27 #278E75
split-complementary
#42278E #8E7527 #3F8E27
monochromatic
#150D2E #2C1A5E #42278E #5834BE #7C5DD2

Accessibility & contrast

On white

10.98
#42278E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#42278E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42278E
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42278E#FFFFFF#000000##FFFFFF
##42278E1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#003A8C
Tritanopia (blue-blind)
#254258
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #42278e;
/* rgb */ color: rgb(66, 39, 142);
/* oklch */ color: oklch(37.5% 0.159 288.2);
Tailwind
colors: {
  custom: {
    50: '#7f64b0',
    500: '#42278e',
    950: '#000000',
  },
}
SCSS
$custom: #42278e;
$custom-light: #7f64b0;
$custom-dark: #000000;
JSON
{
  "hex": "#42278e",
  "rgb": {
    "r": 66,
    "g": 39,
    "b": 142
  },
  "hsl": {
    "h": 255.728,
    "s": 56.906,
    "l": 35.49
  },
  "oklch": {
    "l": 0.3745,
    "c": 0.15937,
    "h": 288.2
  },
  "luminance": 0.04562
}

Semantic roles & 50–950 ramp

primary
#42278E
secondary
#9FB859
accent
#E048B8
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #42278E

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

Preview Lab → · Contrast checker → · Palette generator →

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