#42147B#42147B

#42147B is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.158 H 296.9°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#42147B
RGBrgb(66, 20, 123)
HSLhsl(267, 72%, 28%)
HSVhsv(267, 84%, 48%)
CMYKcmyk(46.3%, 83.7%, 0%, 51.8%)
CIE-LABlab(20.39, 42.99, -49.03)
CIE-LCHlch(20.39, 65.21, 311.25°)
OKLaboklab(33.35% 0.0712 -0.1405)
OKLCHoklch(33.35% 0.158 296.9)
XYZxyz(6.0711, 3.0885, 19.0113)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42147B #4D7B14
analogous
#14197B #42147B #75147B
triadic
#42147B #7B4214 #147B42
tetradic
#42147B #7B1419 #4D7B14 #147B75
square
#42147B #7B1419 #4D7B14 #147B75
split-complementary
#42147B #7B7514 #197B14
monochromatic
#0E041A #260B46 #42147B #5E1DB0 #7B2DDD

Accessibility & contrast

On white

12.98
#42147B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#42147B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42147B
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42147B#FFFFFF#000000##FFFFFF
##42147B1.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#003079
Tritanopia (blue-blind)
#323248
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #42147b;
/* rgb */ color: rgb(66, 20, 123);
/* oklch */ color: oklch(33.4% 0.158 296.9);
Tailwind
colors: {
  custom: {
    50: '#7d58a2',
    500: '#42147b',
    950: '#000000',
  },
}
SCSS
$custom: #42147b;
$custom-light: #7d58a2;
$custom-dark: #000000;
JSON
{
  "hex": "#42147b",
  "rgb": {
    "r": 66,
    "g": 20,
    "b": 123
  },
  "hsl": {
    "h": 266.796,
    "s": 72.028,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3335,
    "c": 0.15755,
    "h": 296.9
  },
  "luminance": 0.03089
}

Semantic roles & 50–950 ramp

primary
#42147B
secondary
#7CB13A
accent
#EF399E
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #42147B

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

Preview Lab → · Contrast checker → · Palette generator →

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