#42267E#42267E

#42267E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 35.9% C 0.140 H 292.5°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#42267E
RGBrgb(66, 38, 126)
HSLhsl(259, 54%, 32%)
HSVhsv(259, 70%, 49%)
CMYKcmyk(47.6%, 69.8%, 0%, 50.6%)
CIE-LABlab(23.84, 34.88, -45.31)
CIE-LCHlch(23.84, 57.18, 307.59°)
OKLaboklab(35.86% 0.0537 -0.1297)
OKLCHoklch(35.86% 0.14 292.5)
XYZxyz(6.7047, 4.0506, 20.1632)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42267E #627E26
analogous
#26367E #42267E #6E267E
triadic
#42267E #7E4226 #267E42
tetradic
#42267E #7E2636 #627E26 #267E6E
square
#42267E #7E2636 #627E26 #267E6E
split-complementary
#42267E #7E6E26 #367E26
monochromatic
#110A20 #29184F #42267E #5B34AD #7953CB

Accessibility & contrast

On white

11.60
#42267E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#42267E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42267E
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42267E#FFFFFF#000000##FFFFFF
##42267E1.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#00377C
Tritanopia (blue-blind)
#303C4E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #42267e;
/* rgb */ color: rgb(66, 38, 126);
/* oklch */ color: oklch(35.9% 0.140 292.5);
Tailwind
colors: {
  custom: {
    50: '#7c62a4',
    500: '#42267e',
    950: '#000000',
  },
}
SCSS
$custom: #42267e;
$custom-light: #7c62a4;
$custom-dark: #000000;
JSON
{
  "hex": "#42267e",
  "rgb": {
    "r": 66,
    "g": 38,
    "b": 126
  },
  "hsl": {
    "h": 259.091,
    "s": 53.659,
    "l": 32.157
  },
  "oklch": {
    "l": 0.35864,
    "c": 0.14038,
    "h": 292.5
  },
  "luminance": 0.04051
}

Semantic roles & 50–950 ramp

primary
#42267E
secondary
#91B050
accent
#DD4BAE
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #42267E

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

Preview Lab → · Contrast checker → · Palette generator →

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