#42247A#42247A

#42247A is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.2% C 0.138 H 294.2°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#42247A
RGBrgb(66, 36, 122)
HSLhsl(261, 54%, 31%)
HSVhsv(261, 70%, 48%)
CMYKcmyk(45.9%, 70.5%, 0%, 52.2%)
CIE-LABlab(23.08, 34.84, -44.00)
CIE-LCHlch(23.08, 56.12, 308.37°)
OKLaboklab(35.22% 0.0565 -0.1259)
OKLCHoklch(35.22% 0.138 294.2)
XYZxyz(6.3895, 3.8250, 18.8102)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42247A #5C7A24
analogous
#24317A #42247A #6D247A
triadic
#42247A #7A4224 #247A42
tetradic
#42247A #7A2431 #5C7A24 #247A6D
square
#42247A #7A2431 #5C7A24 #247A6D
split-complementary
#42247A #7A6D24 #317A24
monochromatic
#0F081B #28164B #42247A #5C32A9 #794ECB

Accessibility & contrast

On white

11.90
#42247A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#42247A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42247A
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42247A#FFFFFF#000000##FFFFFF
##42247A1.0011.901.7711.90
#FFFFFF11.901.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387D
Deuteranopia (green-blind)
#003678
Tritanopia (blue-blind)
#32394C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #42247a;
/* rgb */ color: rgb(66, 36, 122);
/* oklch */ color: oklch(35.2% 0.138 294.2);
Tailwind
colors: {
  custom: {
    50: '#7c61a1',
    500: '#42247a',
    950: '#000000',
  },
}
SCSS
$custom: #42247a;
$custom-light: #7c61a1;
$custom-dark: #000000;
JSON
{
  "hex": "#42247a",
  "rgb": {
    "r": 66,
    "g": 36,
    "b": 122
  },
  "hsl": {
    "h": 260.93,
    "s": 54.43,
    "l": 30.98
  },
  "oklch": {
    "l": 0.35218,
    "c": 0.13797,
    "h": 294.2
  },
  "luminance": 0.03825
}

Semantic roles & 50–950 ramp

primary
#42247A
secondary
#8BAC4D
accent
#DE4AAA
background
#F7F5FA
surface
#EEEAF3
border
#C9C6CD
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #42247A

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

Preview Lab → · Contrast checker → · Palette generator →

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