#42107E#42107E

#42107E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.3% C 0.164 H 296.4°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#42107E
RGBrgb(66, 16, 126)
HSLhsl(267, 77%, 28%)
HSVhsv(267, 87%, 49%)
CMYKcmyk(47.6%, 87.3%, 0%, 50.6%)
CIE-LABlab(20.18, 45.28, -51.29)
CIE-LCHlch(20.18, 68.42, 311.44°)
OKLaboklab(33.3% 0.0729 -0.1471)
OKLCHoklch(33.3% 0.164 296.4)
XYZxyz(6.1969, 3.0350, 19.9939)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42107E #4C7E10
analogous
#10157E #42107E #79107E
triadic
#42107E #7E4210 #107E42
tetradic
#42107E #7E1015 #4C7E10 #107E79
square
#42107E #7E1015 #4C7E10 #107E79
split-complementary
#42107E #7E7910 #157E10
monochromatic
#0E031B #260948 #42107E #5E17B4 #7C25E3

Accessibility & contrast

On white

13.07
#42107E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#42107E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42107E
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42107E#FFFFFF#000000##FFFFFF
##42107E1.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#313249
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #42107e;
/* rgb */ color: rgb(66, 16, 126);
/* oklch */ color: oklch(33.3% 0.164 296.4);
Tailwind
colors: {
  custom: {
    50: '#7e57a4',
    500: '#42107e',
    950: '#000000',
  },
}
SCSS
$custom: #42107e;
$custom-light: #7e57a4;
$custom-dark: #000000;
JSON
{
  "hex": "#42107e",
  "rgb": {
    "r": 66,
    "g": 16,
    "b": 126
  },
  "hsl": {
    "h": 267.273,
    "s": 77.465,
    "l": 27.843
  },
  "oklch": {
    "l": 0.33296,
    "c": 0.16416,
    "h": 296.4
  },
  "luminance": 0.03035
}

Semantic roles & 50–950 ramp

primary
#42107E
secondary
#7BB436
accent
#F4349D
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B030F
muted
#7C787F

Preview Lab

Preview with #42107E

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

Preview Lab → · Contrast checker → · Palette generator →

#42107E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva