#42126C#42126C

#42126C is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.143 H 302.9°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#42126C
RGBrgb(66, 18, 108)
HSLhsl(272, 71%, 25%)
HSVhsv(272, 83%, 42%)
CMYKcmyk(38.9%, 83.3%, 0%, 57.6%)
CIE-LABlab(18.69, 39.93, -42.16)
CIE-LCHlch(18.69, 58.07, 313.44°)
OKLaboklab(31.72% 0.0778 -0.1203)
OKLCHoklch(31.72% 0.143 302.9)
XYZxyz(5.1692, 2.6736, 14.4282)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42126C #3C6C12
analogous
#15126C #42126C #6C1269
triadic
#42126C #6C4212 #126C42
tetradic
#42126C #6C1512 #3C6C12 #12696C
square
#42126C #6C1512 #3C6C12 #12696C
split-complementary
#42126C #696C12 #126C15
monochromatic
#10041A #220938 #42126C #621BA0 #8223D5

Accessibility & contrast

On white

13.68
#42126C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#42126C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42126C
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42126C#FFFFFF#000000##FFFFFF
##42126C1.0013.681.5313.68
#FFFFFF13.681.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6E
Deuteranopia (green-blind)
#002D6A
Tritanopia (blue-blind)
#392A3F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #42126c;
/* rgb */ color: rgb(66, 18, 108);
/* oklch */ color: oklch(31.7% 0.143 302.9);
Tailwind
colors: {
  custom: {
    50: '#7b5797',
    500: '#42126c',
    950: '#000000',
  },
}
SCSS
$custom: #42126c;
$custom-light: #7b5797;
$custom-dark: #000000;
JSON
{
  "hex": "#42126c",
  "rgb": {
    "r": 66,
    "g": 18,
    "b": 108
  },
  "hsl": {
    "h": 272,
    "s": 71.429,
    "l": 24.706
  },
  "oklch": {
    "l": 0.31724,
    "c": 0.14329,
    "h": 302.9
  },
  "luminance": 0.02674
}

Semantic roles & 50–950 ramp

primary
#42126C
secondary
#69A336
accent
#EE3A8E
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030D
muted
#7C787E

Preview Lab

Preview with #42126C

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

Preview Lab → · Contrast checker → · Palette generator →

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