#42256E#42256E

#42256E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.4% C 0.121 H 298.0°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#42256E
RGBrgb(66, 37, 110)
HSLhsl(264, 50%, 29%)
HSVhsv(264, 66%, 43%)
CMYKcmyk(40%, 66.4%, 0%, 56.9%)
CIE-LABlab(22.33, 30.76, -37.54)
CIE-LCHlch(22.33, 48.53, 309.33°)
OKLaboklab(34.37% 0.0568 -0.1069)
OKLCHoklch(34.37% 0.121 298)
XYZxyz(5.7221, 3.6071, 15.1436)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42256E #516E25
analogous
#252D6E #42256E #67256E
triadic
#42256E #6E4225 #256E42
tetradic
#42256E #6E252D #516E25 #256E67
square
#42256E #6E252D #516E25 #256E67
split-complementary
#42256E #6E6725 #2D6E25
monochromatic
#0E0817 #271640 #42256E #5D349C #7A4BC2

Accessibility & contrast

On white

12.20
#42256E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#42256E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42256E
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42256E#FFFFFF#000000##FFFFFF
##42256E1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003670
Deuteranopia (green-blind)
#01356C
Tritanopia (blue-blind)
#383546
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #42256e;
/* rgb */ color: rgb(66, 37, 110);
/* oklch */ color: oklch(34.4% 0.121 298.0);
Tailwind
colors: {
  custom: {
    50: '#7a6198',
    500: '#42256e',
    950: '#000000',
  },
}
SCSS
$custom: #42256e;
$custom-light: #7a6198;
$custom-dark: #000000;
JSON
{
  "hex": "#42256e",
  "rgb": {
    "r": 66,
    "g": 37,
    "b": 110
  },
  "hsl": {
    "h": 263.836,
    "s": 49.66,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34367,
    "c": 0.12104,
    "h": 298
  },
  "luminance": 0.03607
}

Semantic roles & 50–950 ramp

primary
#42256E
secondary
#80A14E
accent
#D94FA2
background
#F7F5F9
surface
#EEEAF2
border
#C9C6CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #42256E

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

Preview Lab → · Contrast checker → · Palette generator →

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