#42286A#42286A

#42286A is a dark, moderate violet. Relative luminance 0.037; OKLCH L 34.6% C 0.111 H 298.6°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#42286A
RGBrgb(66, 40, 106)
HSLhsl(264, 45%, 29%)
HSVhsv(264, 62%, 42%)
CMYKcmyk(37.7%, 62.3%, 0%, 58.4%)
CIE-LABlab(22.71, 27.78, -34.33)
CIE-LCHlch(22.71, 44.16, 308.97°)
OKLaboklab(34.55% 0.0531 -0.0974)
OKLCHoklch(34.55% 0.111 298.6)
XYZxyz(5.6064, 3.7164, 14.0548)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42286A #506A28
analogous
#282F6A #42286A #63286A
triadic
#42286A #6A4228 #286A42
tetradic
#42286A #6A282F #506A28 #286A63
square
#42286A #6A282F #506A28 #286A63
split-complementary
#42286A #6A6328 #2F6A28
monochromatic
#0E0816 #26173E #42286A #5E3996 #7B50BD

Accessibility & contrast

On white

12.05
#42286A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#42286A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42286A
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42286A#FFFFFF#000000##FFFFFF
##42286A1.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04366C
Deuteranopia (green-blind)
#113669
Tritanopia (blue-blind)
#393645
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #42286a;
/* rgb */ color: rgb(66, 40, 106);
/* oklch */ color: oklch(34.6% 0.111 298.6);
Tailwind
colors: {
  custom: {
    50: '#796395',
    500: '#42286a',
    950: '#000000',
  },
}
SCSS
$custom: #42286a;
$custom-light: #796395;
$custom-dark: #000000;
JSON
{
  "hex": "#42286a",
  "rgb": {
    "r": 66,
    "g": 40,
    "b": 106
  },
  "hsl": {
    "h": 263.636,
    "s": 45.205,
    "l": 28.627
  },
  "oklch": {
    "l": 0.34551,
    "c": 0.11097,
    "h": 298.6
  },
  "luminance": 0.03716
}

Semantic roles & 50–950 ramp

primary
#42286A
secondary
#7F9D51
accent
#D553A2
background
#F7F5F9
surface
#EEEAF2
border
#C9C6CC
text
#09050D
muted
#7B797E

Preview Lab

Preview with #42286A

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

Preview Lab → · Contrast checker → · Palette generator →

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