#42266A#42266A

#42266A is a dark, moderate violet. Relative luminance 0.036; OKLCH L 34.2% C 0.114 H 299.3°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#42266A
RGBrgb(66, 38, 106)
HSLhsl(265, 47%, 28%)
HSVhsv(265, 64%, 42%)
CMYKcmyk(37.7%, 64.2%, 0%, 58.4%)
CIE-LABlab(22.25, 29.01, -35.08)
CIE-LCHlch(22.25, 45.52, 309.59°)
OKLaboklab(34.21% 0.0558 -0.0996)
OKLCHoklch(34.21% 0.114 299.3)
XYZxyz(5.5408, 3.5850, 14.0329)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42266A #4E6A26
analogous
#262C6A #42266A #64266A
triadic
#42266A #6A4226 #266A42
tetradic
#42266A #6A262C #4E6A26 #266A64
square
#42266A #6A262C #4E6A26 #266A64
split-complementary
#42266A #6A6426 #2C6A26
monochromatic
#0E0817 #26163D #42266A #5E3697 #7B4CBF

Accessibility & contrast

On white

12.23
#42266A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#42266A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42266A
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42266A#FFFFFF#000000##FFFFFF
##42266A1.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00356C
Deuteranopia (green-blind)
#0C3568
Tritanopia (blue-blind)
#393544
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #42266a;
/* rgb */ color: rgb(66, 38, 106);
/* oklch */ color: oklch(34.2% 0.114 299.3);
Tailwind
colors: {
  custom: {
    50: '#7a6295',
    500: '#42266a',
    950: '#000000',
  },
}
SCSS
$custom: #42266a;
$custom-light: #7a6295;
$custom-dark: #000000;
JSON
{
  "hex": "#42266a",
  "rgb": {
    "r": 66,
    "g": 38,
    "b": 106
  },
  "hsl": {
    "h": 264.706,
    "s": 47.222,
    "l": 28.235
  },
  "oklch": {
    "l": 0.34214,
    "c": 0.11418,
    "h": 299.3
  },
  "luminance": 0.03585
}

Semantic roles & 50–950 ramp

primary
#42266A
secondary
#7D9D4F
accent
#D751A0
background
#F7F5F9
surface
#EEEAF2
border
#C9C6CC
text
#09050D
muted
#7B797E

Preview Lab

Preview with #42266A

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

Preview Lab → · Contrast checker → · Palette generator →

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