#42247C#42247C

#42247C is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.4% C 0.141 H 293.6°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#42247C
RGBrgb(66, 36, 124)
HSLhsl(260, 55%, 31%)
HSVhsv(260, 71%, 49%)
CMYKcmyk(46.8%, 71%, 0%, 51.4%)
CIE-LABlab(23.25, 35.43, -45.00)
CIE-LCHlch(23.25, 57.27, 308.21°)
OKLaboklab(35.39% 0.0562 -0.1288)
OKLCHoklch(35.39% 0.141 293.6)
XYZxyz(6.5147, 3.8750, 19.4696)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42247C #5E7C24
analogous
#24327C #42247C #6E247C
triadic
#42247C #7C4224 #247C42
tetradic
#42247C #7C2432 #5E7C24 #247C6E
square
#42247C #7C2432 #5E7C24 #247C6E
split-complementary
#42247C #7C6E24 #327C24
monochromatic
#10081D #29164D #42247C #5B32AB #794FCC

Accessibility & contrast

On white

11.83
#42247C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#42247C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42247C
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42247C#FFFFFF#000000##FFFFFF
##42247C1.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#00367A
Tritanopia (blue-blind)
#313A4D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #42247c;
/* rgb */ color: rgb(66, 36, 124);
/* oklch */ color: oklch(35.4% 0.141 293.6);
Tailwind
colors: {
  custom: {
    50: '#7c61a3',
    500: '#42247c',
    950: '#000000',
  },
}
SCSS
$custom: #42247c;
$custom-light: #7c61a3;
$custom-dark: #000000;
JSON
{
  "hex": "#42247c",
  "rgb": {
    "r": 66,
    "g": 36,
    "b": 124
  },
  "hsl": {
    "h": 260.455,
    "s": 55,
    "l": 31.373
  },
  "oklch": {
    "l": 0.35392,
    "c": 0.1405,
    "h": 293.6
  },
  "luminance": 0.03875
}

Semantic roles & 50–950 ramp

primary
#42247C
secondary
#8DAE4D
accent
#DE49AC
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #42247C

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

Preview Lab → · Contrast checker → · Palette generator →

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