#42267A#42267A

#42267A is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.5% C 0.135 H 293.7°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#42267A
RGBrgb(66, 38, 122)
HSLhsl(260, 53%, 31%)
HSVhsv(260, 69%, 48%)
CMYKcmyk(45.9%, 68.9%, 0%, 52.2%)
CIE-LABlab(23.50, 33.69, -43.32)
CIE-LCHlch(23.50, 54.88, 307.87°)
OKLaboklab(35.52% 0.0543 -0.1239)
OKLCHoklch(35.52% 0.135 293.7)
XYZxyz(6.4518, 3.9494, 18.8310)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42267A #5E7A26
analogous
#26347A #42267A #6C267A
triadic
#42267A #7A4226 #267A42
tetradic
#42267A #7A2634 #5E7A26 #267A6C
square
#42267A #7A2634 #5E7A26 #267A6C
split-complementary
#42267A #7A6C26 #347A26
monochromatic
#10091D #29174B #42267A #5B35A9 #7951C9

Accessibility & contrast

On white

11.73
#42267A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#42267A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42267A
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42267A#FFFFFF#000000##FFFFFF
##42267A1.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397D
Deuteranopia (green-blind)
#003678
Tritanopia (blue-blind)
#323A4C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #42267a;
/* rgb */ color: rgb(66, 38, 122);
/* oklch */ color: oklch(35.5% 0.135 293.7);
Tailwind
colors: {
  custom: {
    50: '#7c62a1',
    500: '#42267a',
    950: '#000000',
  },
}
SCSS
$custom: #42267a;
$custom-light: #7c62a1;
$custom-dark: #000000;
JSON
{
  "hex": "#42267a",
  "rgb": {
    "r": 66,
    "g": 38,
    "b": 122
  },
  "hsl": {
    "h": 260,
    "s": 52.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.35519,
    "c": 0.13523,
    "h": 293.7
  },
  "luminance": 0.0395
}

Semantic roles & 50–950 ramp

primary
#42267A
secondary
#8DAC50
accent
#DC4CAC
background
#F7F5FA
surface
#EEEAF3
border
#C9C6CD
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #42267A

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

Preview Lab → · Contrast checker → · Palette generator →

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