#42318C#42318C

#42318C is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.8% C 0.144 H 286.2°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#42318C
RGBrgb(66, 49, 140)
HSLhsl(251, 48%, 37%)
HSVhsv(251, 65%, 55%)
CMYKcmyk(52.9%, 65%, 0%, 45.1%)
CIE-LABlab(27.43, 32.63, -48.23)
CIE-LCHlch(27.43, 58.23, 304.08°)
OKLaboklab(38.82% 0.0401 -0.1383)
OKLCHoklch(38.82% 0.144 286.2)
XYZxyz(8.0773, 5.2479, 25.3932)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42318C #7B8C31
analogous
#314E8C #42318C #70318C
triadic
#42318C #8C4231 #318C42
tetradic
#42318C #8C314E #7B8C31 #318C70
square
#42318C #8C314E #7B8C31 #318C70
split-complementary
#42318C #8C7031 #4E8C31
monochromatic
#171131 #2D215F #42318C #5741B9 #7E6CCC

Accessibility & contrast

On white

10.25
#42318C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#42318C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42318C
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42318C#FFFFFF#000000##FFFFFF
##42318C1.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438F
Deuteranopia (green-blind)
#003E8A
Tritanopia (blue-blind)
#26475A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #42318c;
/* rgb */ color: rgb(66, 49, 140);
/* oklch */ color: oklch(38.8% 0.144 286.2);
Tailwind
colors: {
  custom: {
    50: '#7d6aae',
    500: '#42318c',
    950: '#000000',
  },
}
SCSS
$custom: #42318c;
$custom-light: #7d6aae;
$custom-dark: #000000;
JSON
{
  "hex": "#42318c",
  "rgb": {
    "r": 66,
    "g": 49,
    "b": 140
  },
  "hsl": {
    "h": 251.209,
    "s": 48.148,
    "l": 37.059
  },
  "oklch": {
    "l": 0.38822,
    "c": 0.14398,
    "h": 286.2
  },
  "luminance": 0.05248
}

Semantic roles & 50–950 ramp

primary
#42318C
secondary
#A5B366
accent
#D850BE
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #42318C

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

Preview Lab → · Contrast checker → · Palette generator →

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