#42247F#42247F

#42247F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.7% C 0.144 H 292.7°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#42247F
RGBrgb(66, 36, 127)
HSLhsl(260, 56%, 32%)
HSVhsv(260, 72%, 50%)
CMYKcmyk(48%, 71.7%, 0%, 50.2%)
CIE-LABlab(23.51, 36.31, -46.47)
CIE-LCHlch(23.51, 58.98, 308.00°)
OKLaboklab(35.66% 0.0556 -0.1331)
OKLCHoklch(35.66% 0.144 292.7)
XYZxyz(6.7073, 3.9521, 20.4840)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42247F #617F24
analogous
#24347F #42247F #70247F
triadic
#42247F #7F4224 #247F42
tetradic
#42247F #7F2434 #617F24 #247F70
square
#42247F #7F2434 #617F24 #247F70
split-complementary
#42247F #7F7024 #347F24
monochromatic
#100920 #29164F #42247F #5B32AF #7950CD

Accessibility & contrast

On white

11.73
#42247F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#42247F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42247F
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42247F#FFFFFF#000000##FFFFFF
##42247F1.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#303B4E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #42247f;
/* rgb */ color: rgb(66, 36, 127);
/* oklch */ color: oklch(35.7% 0.144 292.7);
Tailwind
colors: {
  custom: {
    50: '#7c61a5',
    500: '#42247f',
    950: '#000000',
  },
}
SCSS
$custom: #42247f;
$custom-light: #7c61a5;
$custom-dark: #000000;
JSON
{
  "hex": "#42247f",
  "rgb": {
    "r": 66,
    "g": 36,
    "b": 127
  },
  "hsl": {
    "h": 259.78,
    "s": 55.828,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35658,
    "c": 0.14428,
    "h": 292.7
  },
  "luminance": 0.03952
}

Semantic roles & 50–950 ramp

primary
#42247F
secondary
#90B14E
accent
#DF49AE
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #42247F

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

Preview Lab → · Contrast checker → · Palette generator →

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