#42267D#42267D

#42267D is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.8% C 0.139 H 292.8°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#42267D
RGBrgb(66, 38, 125)
HSLhsl(259, 53%, 32%)
HSVhsv(259, 70%, 49%)
CMYKcmyk(47.2%, 69.6%, 0%, 51%)
CIE-LABlab(23.75, 34.58, -44.82)
CIE-LCHlch(23.75, 56.61, 307.65°)
OKLaboklab(35.78% 0.0539 -0.1282)
OKLCHoklch(35.78% 0.139 292.8)
XYZxyz(6.6405, 4.0249, 19.8251)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42267D #617D26
analogous
#26367D #42267D #6E267D
triadic
#42267D #7D4226 #267D42
tetradic
#42267D #7D2636 #617D26 #267D6E
square
#42267D #7D2636 #617D26 #267D6E
split-complementary
#42267D #7D6E26 #367D26
monochromatic
#10091F #29184E #42267D #5B34AC #7953CB

Accessibility & contrast

On white

11.63
#42267D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42267D
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42267D#FFFFFF#000000##FFFFFF
##42267D1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#00377B
Tritanopia (blue-blind)
#313B4E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #42267d;
/* rgb */ color: rgb(66, 38, 125);
/* oklch */ color: oklch(35.8% 0.139 292.8);
Tailwind
colors: {
  custom: {
    50: '#7c62a3',
    500: '#42267d',
    950: '#000000',
  },
}
SCSS
$custom: #42267d;
$custom-light: #7c62a3;
$custom-dark: #000000;
JSON
{
  "hex": "#42267d",
  "rgb": {
    "r": 66,
    "g": 38,
    "b": 125
  },
  "hsl": {
    "h": 259.31,
    "s": 53.374,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35777,
    "c": 0.1391,
    "h": 292.8
  },
  "luminance": 0.04025
}

Semantic roles & 50–950 ramp

primary
#42267D
secondary
#90AF50
accent
#DD4BAE
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #42267D

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

Preview Lab → · Contrast checker → · Palette generator →

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