#42226F#42226F

#42226F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.0% C 0.127 H 298.5°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#42226F
RGBrgb(66, 34, 111)
HSLhsl(265, 53%, 28%)
HSVhsv(265, 69%, 44%)
CMYKcmyk(40.5%, 69.4%, 0%, 56.5%)
CIE-LABlab(21.76, 32.80, -39.10)
CIE-LCHlch(21.76, 51.03, 309.99°)
OKLaboklab(33.98% 0.0604 -0.1114)
OKLCHoklch(33.98% 0.127 298.5)
XYZxyz(5.6873, 3.4499, 15.4021)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42226F #4F6F22
analogous
#22286F #42226F #68226F
triadic
#42226F #6F4222 #226F42
tetradic
#42226F #6F2228 #4F6F22 #226F68
square
#42226F #6F2228 #4F6F22 #226F68
split-complementary
#42226F #6F6822 #286F22
monochromatic
#0E0717 #261440 #42226F #5E309E #7B45C6

Accessibility & contrast

On white

12.43
#42226F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#42226F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42226F
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42226F#FFFFFF#000000##FFFFFF
##42226F1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003471
Deuteranopia (green-blind)
#00336D
Tritanopia (blue-blind)
#373445
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #42226f;
/* rgb */ color: rgb(66, 34, 111);
/* oklch */ color: oklch(34.0% 0.127 298.5);
Tailwind
colors: {
  custom: {
    50: '#7a5f99',
    500: '#42226f',
    950: '#000000',
  },
}
SCSS
$custom: #42226f;
$custom-light: #7a5f99;
$custom-dark: #000000;
JSON
{
  "hex": "#42226f",
  "rgb": {
    "r": 66,
    "g": 34,
    "b": 111
  },
  "hsl": {
    "h": 264.935,
    "s": 53.103,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33984,
    "c": 0.12677,
    "h": 298.5
  },
  "luminance": 0.0345
}

Semantic roles & 50–950 ramp

primary
#42226F
secondary
#7EA24A
accent
#DD4BA0
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A050E
muted
#7C797E

Preview Lab

Preview with #42226F

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

Preview Lab → · Contrast checker → · Palette generator →

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