#42318E#42318E

#42318E is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.0% C 0.147 H 285.8°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#42318E
RGBrgb(66, 49, 142)
HSLhsl(251, 49%, 37%)
HSVhsv(251, 65%, 56%)
CMYKcmyk(53.5%, 65.5%, 0%, 44.3%)
CIE-LABlab(27.59, 33.27, -49.20)
CIE-LCHlch(27.59, 59.39, 304.06°)
OKLaboklab(38.99% 0.0399 -0.1411)
OKLCHoklch(38.99% 0.147 285.8)
XYZxyz(8.2261, 5.3074, 26.1769)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42318E #7D8E31
analogous
#314E8E #42318E #71318E
triadic
#42318E #8E4231 #318E42
tetradic
#42318E #8E314E #7D8E31 #318E71
square
#42318E #8E314E #7D8E31 #318E71
split-complementary
#42318E #8E7131 #4E8E31
monochromatic
#181233 #2D2161 #42318E #5741BB #7E6DCD

Accessibility & contrast

On white

10.19
#42318E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#42318E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42318E
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42318E#FFFFFF#000000##FFFFFF
##42318E1.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#003E8C
Tritanopia (blue-blind)
#24485B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #42318e;
/* rgb */ color: rgb(66, 49, 142);
/* oklch */ color: oklch(39.0% 0.147 285.8);
Tailwind
colors: {
  custom: {
    50: '#7e6ab0',
    500: '#42318e',
    950: '#000000',
  },
}
SCSS
$custom: #42318e;
$custom-light: #7e6ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#42318e",
  "rgb": {
    "r": 66,
    "g": 49,
    "b": 142
  },
  "hsl": {
    "h": 250.968,
    "s": 48.691,
    "l": 37.451
  },
  "oklch": {
    "l": 0.38992,
    "c": 0.14666,
    "h": 285.8
  },
  "luminance": 0.05308
}

Semantic roles & 50–950 ramp

primary
#42318E
secondary
#A6B467
accent
#D850BF
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #42318E

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

Preview Lab → · Contrast checker → · Palette generator →

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