#42317C#42317C

#42317C is a dark, vivid violet. Relative luminance 0.048; OKLCH L 37.5% C 0.122 H 289.6°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#42317C
RGBrgb(66, 49, 124)
HSLhsl(254, 43%, 34%)
HSVhsv(254, 60%, 49%)
CMYKcmyk(46.8%, 60.5%, 0%, 51.4%)
CIE-LABlab(26.19, 27.57, -40.24)
CIE-LCHlch(26.19, 48.78, 304.41°)
OKLaboklab(37.52% 0.041 -0.1148)
OKLCHoklch(37.52% 0.122 289.6)
XYZxyz(6.9821, 4.8099, 19.6254)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42317C #6B7C31
analogous
#31467C #42317C #68317C
triadic
#42317C #7C4231 #317C42
tetradic
#42317C #7C3146 #6B7C31 #317C68
square
#42317C #7C3146 #6B7C31 #317C68
split-complementary
#42317C #7C6831 #467C31
monochromatic
#130E24 #2B2050 #42317C #5942A8 #7A65C2

Accessibility & contrast

On white

10.70
#42317C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#42317C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42317C
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42317C#FFFFFF#000000##FFFFFF
##42317C1.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7E
Deuteranopia (green-blind)
#023C7A
Tritanopia (blue-blind)
#304251
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #42317c;
/* rgb */ color: rgb(66, 49, 124);
/* oklch */ color: oklch(37.5% 0.122 289.6);
Tailwind
colors: {
  custom: {
    50: '#7b6aa2',
    500: '#42317c',
    950: '#000000',
  },
}
SCSS
$custom: #42317c;
$custom-light: #7b6aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#42317c",
  "rgb": {
    "r": 66,
    "g": 49,
    "b": 124
  },
  "hsl": {
    "h": 253.6,
    "s": 43.353,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3752,
    "c": 0.1219,
    "h": 289.6
  },
  "luminance": 0.0481
}

Semantic roles & 50–950 ramp

primary
#42317C
secondary
#99AA5F
accent
#D355B6
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A060F
muted
#7C7A7F

Preview Lab

Preview with #42317C

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

Preview Lab → · Contrast checker → · Palette generator →

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