#42255D#42255D

#42255D is a dark, moderate violet. Relative luminance 0.033; OKLCH L 33.1% C 0.098 H 305.6°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#42255D
RGBrgb(66, 37, 93)
HSLhsl(271, 43%, 25%)
HSVhsv(271, 60%, 36%)
CMYKcmyk(29%, 60.2%, 0%, 63.5%)
CIE-LABlab(21.10, 25.97, -28.41)
CIE-LCHlch(21.10, 38.49, 312.43°)
OKLaboklab(33.08% 0.0573 -0.08)
OKLCHoklch(33.08% 0.098 305.6)
XYZxyz(4.8837, 3.2717, 10.7280)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42255D #405D25
analogous
#26255D #42255D #5D255C
triadic
#42255D #5D4225 #255D42
tetradic
#42255D #5D2625 #405D25 #255C5D
square
#42255D #5D2625 #405D25 #255C5D
split-complementary
#42255D #5C5D25 #255D26
monochromatic
#100916 #231431 #42255D #613689 #8048B5

Accessibility & contrast

On white

12.69
#42255D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#42255D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42255D
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42255D#FFFFFF#000000##FFFFFF
##42255D1.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10325F
Deuteranopia (green-blind)
#1B335C
Tritanopia (blue-blind)
#3D303D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #42255d;
/* rgb */ color: rgb(66, 37, 93);
/* oklch */ color: oklch(33.1% 0.098 305.6);
Tailwind
colors: {
  custom: {
    50: '#78618b',
    500: '#42255d',
    950: '#000000',
  },
}
SCSS
$custom: #42255d;
$custom-light: #78618b;
$custom-dark: #000000;
JSON
{
  "hex": "#42255d",
  "rgb": {
    "r": 66,
    "g": 37,
    "b": 93
  },
  "hsl": {
    "h": 271.071,
    "s": 43.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.3308,
    "c": 0.09842,
    "h": 305.6
  },
  "luminance": 0.03272
}

Semantic roles & 50–950 ramp

primary
#42255D
secondary
#6E904D
accent
#D35592
background
#F7F5F8
surface
#EDEAF0
border
#C8C6CB
text
#09050C
muted
#7B797D

Preview Lab

Preview with #42255D

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

Preview Lab → · Contrast checker → · Palette generator →

#42255D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva