#42267F#42267F

#42267F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.0% C 0.142 H 292.2°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#42267F
RGBrgb(66, 38, 127)
HSLhsl(259, 54%, 32%)
HSVhsv(259, 70%, 50%)
CMYKcmyk(48%, 70.1%, 0%, 50.2%)
CIE-LABlab(23.92, 35.18, -45.80)
CIE-LCHlch(23.92, 57.75, 307.52°)
OKLaboklab(35.95% 0.0535 -0.1312)
OKLCHoklch(35.95% 0.142 292.2)
XYZxyz(6.7696, 4.0766, 20.5047)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42267F #637F26
analogous
#26377F #42267F #6E267F
triadic
#42267F #7F4226 #267F42
tetradic
#42267F #7F2637 #637F26 #267F6E
square
#42267F #7F2637 #637F26 #267F6E
split-complementary
#42267F #7F6E26 #377F26
monochromatic
#110A21 #2A1850 #42267F #5A34AE #7954CC

Accessibility & contrast

On white

11.57
#42267F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#42267F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42267F
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42267F#FFFFFF#000000##FFFFFF
##42267F1.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#00377D
Tritanopia (blue-blind)
#2F3C4F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #42267f;
/* rgb */ color: rgb(66, 38, 127);
/* oklch */ color: oklch(36.0% 0.142 292.2);
Tailwind
colors: {
  custom: {
    50: '#7c62a5',
    500: '#42267f',
    950: '#000000',
  },
}
SCSS
$custom: #42267f;
$custom-light: #7c62a5;
$custom-dark: #000000;
JSON
{
  "hex": "#42267f",
  "rgb": {
    "r": 66,
    "g": 38,
    "b": 127
  },
  "hsl": {
    "h": 258.876,
    "s": 53.939,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35951,
    "c": 0.14166,
    "h": 292.2
  },
  "luminance": 0.04077
}

Semantic roles & 50–950 ramp

primary
#42267F
secondary
#92B051
accent
#DD4AAF
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #42267F

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

Preview Lab → · Contrast checker → · Palette generator →

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