#42237A#42237A

#42237A is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.1% C 0.139 H 294.4°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#42237A
RGBrgb(66, 35, 122)
HSLhsl(261, 55%, 31%)
HSVhsv(261, 71%, 48%)
CMYKcmyk(45.9%, 71.3%, 0%, 52.2%)
CIE-LABlab(22.88, 35.40, -44.33)
CIE-LCHlch(22.88, 56.74, 308.61°)
OKLaboklab(35.07% 0.0576 -0.1268)
OKLCHoklch(35.07% 0.139 294.4)
XYZxyz(6.3597, 3.7653, 18.8003)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42237A #5B7A23
analogous
#232F7A #42237A #6D237A
triadic
#42237A #7A4223 #237A42
tetradic
#42237A #7A232F #5B7A23 #237A6D
square
#42237A #7A232F #5B7A23 #237A6D
split-complementary
#42237A #7A6D23 #2F7A23
monochromatic
#0F081B #28154A #42237A #5C31AA #794CCC

Accessibility & contrast

On white

11.98
#42237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#42237A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42237A
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42237A#FFFFFF#000000##FFFFFF
##42237A1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#003578
Tritanopia (blue-blind)
#32384B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #42237a;
/* rgb */ color: rgb(66, 35, 122);
/* oklch */ color: oklch(35.1% 0.139 294.4);
Tailwind
colors: {
  custom: {
    50: '#7c60a1',
    500: '#42237a',
    950: '#000000',
  },
}
SCSS
$custom: #42237a;
$custom-light: #7c60a1;
$custom-dark: #000000;
JSON
{
  "hex": "#42237a",
  "rgb": {
    "r": 66,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 261.379,
    "s": 55.414,
    "l": 30.784
  },
  "oklch": {
    "l": 0.35071,
    "c": 0.1393,
    "h": 294.4
  },
  "luminance": 0.03765
}

Semantic roles & 50–950 ramp

primary
#42237A
secondary
#8AAD4C
accent
#DF49A9
background
#F7F5FA
surface
#EEEAF3
border
#C9C6CD
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #42237A

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

Preview Lab → · Contrast checker → · Palette generator →

#42237A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva