#42256B#42256B

#42256B is a dark, moderate violet. Relative luminance 0.035; OKLCH L 34.1% C 0.117 H 299.2°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#42256B
RGBrgb(66, 37, 107)
HSLhsl(265, 49%, 28%)
HSVhsv(265, 65%, 42%)
CMYKcmyk(38.3%, 65.4%, 0%, 58%)
CIE-LABlab(22.10, 29.89, -35.97)
CIE-LCHlch(22.10, 46.77, 309.73°)
OKLaboklab(34.13% 0.0571 -0.1022)
OKLCHoklch(34.13% 0.117 299.2)
XYZxyz(5.5615, 3.5429, 14.2979)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42256B #4E6B25
analogous
#252B6B #42256B #65256B
triadic
#42256B #6B4225 #256B42
tetradic
#42256B #6B252B #4E6B25 #256B65
square
#42256B #6B252B #4E6B25 #256B65
split-complementary
#42256B #6B6525 #2B6B25
monochromatic
#0E0817 #26153E #42256B #5E3598 #7B4AC0

Accessibility & contrast

On white

12.29
#42256B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#42256B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42256B
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42256B#FFFFFF#000000##FFFFFF
##42256B1.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00356D
Deuteranopia (green-blind)
#083469
Tritanopia (blue-blind)
#393444
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #42256b;
/* rgb */ color: rgb(66, 37, 107);
/* oklch */ color: oklch(34.1% 0.117 299.2);
Tailwind
colors: {
  custom: {
    50: '#7a6196',
    500: '#42256b',
    950: '#000000',
  },
}
SCSS
$custom: #42256b;
$custom-light: #7a6196;
$custom-dark: #000000;
JSON
{
  "hex": "#42256b",
  "rgb": {
    "r": 66,
    "g": 37,
    "b": 107
  },
  "hsl": {
    "h": 264.857,
    "s": 48.611,
    "l": 28.235
  },
  "oklch": {
    "l": 0.34128,
    "c": 0.11708,
    "h": 299.2
  },
  "luminance": 0.03543
}

Semantic roles & 50–950 ramp

primary
#42256B
secondary
#7D9E4E
accent
#D850A0
background
#F7F5F9
surface
#EEEAF2
border
#C9C6CC
text
#09050D
muted
#7B797E

Preview Lab

Preview with #42256B

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

Preview Lab → · Contrast checker → · Palette generator →

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