#42126F#42126F

#42126F is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.0% C 0.146 H 301.6°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#42126F
RGBrgb(66, 18, 111)
HSLhsl(271, 72%, 25%)
HSVhsv(271, 84%, 44%)
CMYKcmyk(40.5%, 83.8%, 0%, 56.5%)
CIE-LABlab(18.96, 40.69, -43.66)
CIE-LCHlch(18.96, 59.68, 312.99°)
OKLaboklab(32% 0.0769 -0.1247)
OKLCHoklch(32% 0.147 301.6)
XYZxyz(5.3316, 2.7385, 15.2835)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42126F #3F6F12
analogous
#14126F #42126F #6F126D
triadic
#42126F #6F4212 #126F42
tetradic
#42126F #6F1412 #3F6F12 #126D6F
square
#42126F #6F1412 #3F6F12 #126D6F
split-complementary
#42126F #6D6F12 #126F14
monochromatic
#10041A #23093A #42126F #611BA4 #8123D8

Accessibility & contrast

On white

13.57
#42126F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#42126F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42126F
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42126F#FFFFFF#000000##FFFFFF
##42126F1.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D72
Deuteranopia (green-blind)
#002E6D
Tritanopia (blue-blind)
#382C41
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #42126f;
/* rgb */ color: rgb(66, 18, 111);
/* oklch */ color: oklch(32.0% 0.146 301.6);
Tailwind
colors: {
  custom: {
    50: '#7c5799',
    500: '#42126f',
    950: '#000000',
  },
}
SCSS
$custom: #42126f;
$custom-light: #7c5799;
$custom-dark: #000000;
JSON
{
  "hex": "#42126f",
  "rgb": {
    "r": 66,
    "g": 18,
    "b": 111
  },
  "hsl": {
    "h": 270.968,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.32004,
    "c": 0.1465,
    "h": 301.6
  },
  "luminance": 0.02739
}

Semantic roles & 50–950 ramp

primary
#42126F
secondary
#6DA637
accent
#EF3991
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #42126F

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

Preview Lab → · Contrast checker → · Palette generator →

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