#42236E#42236E

#42236E is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.1% C 0.124 H 298.6°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#42236E
RGBrgb(66, 35, 110)
HSLhsl(265, 52%, 28%)
HSVhsv(265, 68%, 43%)
CMYKcmyk(40%, 68.2%, 0%, 56.9%)
CIE-LABlab(21.89, 31.94, -38.24)
CIE-LCHlch(21.89, 49.82, 309.86°)
OKLaboklab(34.05% 0.0593 -0.1089)
OKLCHoklch(34.05% 0.124 298.6)
XYZxyz(5.6616, 3.4860, 15.1234)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42236E #4F6E23
analogous
#23296E #42236E #67236E
triadic
#42236E #6E4223 #236E42
tetradic
#42236E #6E2329 #4F6E23 #236E67
square
#42236E #6E2329 #4F6E23 #236E67
split-complementary
#42236E #6E6723 #296E23
monochromatic
#0E0717 #261440 #42236E #5E329C #7B47C4

Accessibility & contrast

On white

12.37
#42236E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#42236E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42236E
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42236E#FFFFFF#000000##FFFFFF
##42236E1.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003470
Deuteranopia (green-blind)
#00346C
Tritanopia (blue-blind)
#383445
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #42236e;
/* rgb */ color: rgb(66, 35, 110);
/* oklch */ color: oklch(34.1% 0.124 298.6);
Tailwind
colors: {
  custom: {
    50: '#7a6098',
    500: '#42236e',
    950: '#000000',
  },
}
SCSS
$custom: #42236e;
$custom-light: #7a6098;
$custom-dark: #000000;
JSON
{
  "hex": "#42236e",
  "rgb": {
    "r": 66,
    "g": 35,
    "b": 110
  },
  "hsl": {
    "h": 264.8,
    "s": 51.724,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34054,
    "c": 0.12403,
    "h": 298.6
  },
  "luminance": 0.03486
}

Semantic roles & 50–950 ramp

primary
#42236E
secondary
#7EA14C
accent
#DB4DA0
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A050E
muted
#7C797E

Preview Lab

Preview with #42236E

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

Preview Lab → · Contrast checker → · Palette generator →

#42236E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva