#42285B#42285B

#42285B is a dark, moderate violet. Relative luminance 0.034; OKLCH L 33.5% C 0.090 H 305.6°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#42285B
RGBrgb(66, 40, 91)
HSLhsl(271, 39%, 26%)
HSVhsv(271, 56%, 36%)
CMYKcmyk(27.5%, 56%, 0%, 64.3%)
CIE-LABlab(21.69, 23.53, -26.14)
CIE-LCHlch(21.69, 35.17, 312.00°)
OKLaboklab(33.48% 0.0526 -0.0734)
OKLCHoklch(33.48% 0.09 305.6)
XYZxyz(4.8935, 3.4312, 10.3000)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42285B #415B28
analogous
#28285B #42285B #5B285A
triadic
#42285B #5B4228 #285B42
tetradic
#42285B #5B2828 #415B28 #285A5B
square
#42285B #5B2828 #415B28 #285A5B
split-complementary
#42285B #5A5B28 #285B28
monochromatic
#0F0915 #231530 #42285B #613B86 #804DB0

Accessibility & contrast

On white

12.45
#42285B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#42285B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42285B
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42285B#FFFFFF#000000##FFFFFF
##42285B1.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18335D
Deuteranopia (green-blind)
#20345A
Tritanopia (blue-blind)
#3E313D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #42285b;
/* rgb */ color: rgb(66, 40, 91);
/* oklch */ color: oklch(33.5% 0.090 305.6);
Tailwind
colors: {
  custom: {
    50: '#78638a',
    500: '#42285b',
    950: '#000000',
  },
}
SCSS
$custom: #42285b;
$custom-light: #78638a;
$custom-dark: #000000;
JSON
{
  "hex": "#42285b",
  "rgb": {
    "r": 66,
    "g": 40,
    "b": 91
  },
  "hsl": {
    "h": 270.588,
    "s": 38.931,
    "l": 25.686
  },
  "oklch": {
    "l": 0.33476,
    "c": 0.09032,
    "h": 305.6
  },
  "luminance": 0.03431
}

Semantic roles & 50–950 ramp

primary
#42285B
secondary
#6F8E51
accent
#CF5993
background
#F7F5F8
surface
#EDEAF0
border
#C8C6CB
text
#09050B
muted
#7B797C

Preview Lab

Preview with #42285B

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

Preview Lab → · Contrast checker → · Palette generator →

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