#42285F#42285F

#42285F is a dark, moderate violet. Relative luminance 0.035; OKLCH L 33.8% C 0.096 H 303.5°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#42285F
RGBrgb(66, 40, 95)
HSLhsl(268, 41%, 26%)
HSVhsv(268, 58%, 37%)
CMYKcmyk(30.5%, 57.9%, 0%, 62.7%)
CIE-LABlab(21.95, 24.64, -28.37)
CIE-LCHlch(21.95, 37.57, 310.98°)
OKLaboklab(33.75% 0.0529 -0.0799)
OKLCHoklch(33.75% 0.096 303.5)
XYZxyz(5.0707, 3.5021, 11.2331)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42285F #455F28
analogous
#282A5F #42285F #5E285F
triadic
#42285F #5F4228 #285F42
tetradic
#42285F #5F282A #455F28 #285F5E
square
#42285F #5F282A #455F28 #285F5E
split-complementary
#42285F #5F5E28 #2A5F28
monochromatic
#0F0916 #241634 #42285F #603A8A #7E4DB4

Accessibility & contrast

On white

12.35
#42285F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#42285F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42285F
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42285F#FFFFFF#000000##FFFFFF
##42285F1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143461
Deuteranopia (green-blind)
#1D345E
Tritanopia (blue-blind)
#3D323F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #42285f;
/* rgb */ color: rgb(66, 40, 95);
/* oklch */ color: oklch(33.8% 0.096 303.5);
Tailwind
colors: {
  custom: {
    50: '#78638d',
    500: '#42285f',
    950: '#000000',
  },
}
SCSS
$custom: #42285f;
$custom-light: #78638d;
$custom-dark: #000000;
JSON
{
  "hex": "#42285f",
  "rgb": {
    "r": 66,
    "g": 40,
    "b": 95
  },
  "hsl": {
    "h": 268.364,
    "s": 40.741,
    "l": 26.471
  },
  "oklch": {
    "l": 0.3375,
    "c": 0.09585,
    "h": 303.5
  },
  "luminance": 0.03502
}

Semantic roles & 50–950 ramp

primary
#42285F
secondary
#739251
accent
#D15797
background
#F7F5F8
surface
#EDEAF0
border
#C8C6CB
text
#09050C
muted
#7B797D

Preview Lab

Preview with #42285F

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

Preview Lab → · Contrast checker → · Palette generator →

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