#42286C#42286C

#42286C is a dark, moderate violet. Relative luminance 0.038; OKLCH L 34.7% C 0.114 H 297.8°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#42286C
RGBrgb(66, 40, 108)
HSLhsl(263, 46%, 29%)
HSVhsv(263, 63%, 42%)
CMYKcmyk(38.9%, 63%, 0%, 57.6%)
CIE-LABlab(22.86, 28.36, -35.39)
CIE-LCHlch(22.86, 45.35, 308.70°)
OKLaboklab(34.7% 0.0531 -0.1006)
OKLCHoklch(34.7% 0.114 297.8)
XYZxyz(5.7117, 3.7585, 14.6090)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42286C #526C28
analogous
#28306C #42286C #64286C
triadic
#42286C #6C4228 #286C42
tetradic
#42286C #6C2830 #526C28 #286C64
square
#42286C #6C2830 #526C28 #286C64
split-complementary
#42286C #6C6428 #306C28
monochromatic
#0E0816 #27173F #42286C #5D3999 #7A50BE

Accessibility & contrast

On white

11.99
#42286C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#42286C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42286C
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42286C#FFFFFF#000000##FFFFFF
##42286C1.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00376E
Deuteranopia (green-blind)
#0D366A
Tritanopia (blue-blind)
#383746
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #42286c;
/* rgb */ color: rgb(66, 40, 108);
/* oklch */ color: oklch(34.7% 0.114 297.8);
Tailwind
colors: {
  custom: {
    50: '#7a6397',
    500: '#42286c',
    950: '#000000',
  },
}
SCSS
$custom: #42286c;
$custom-light: #7a6397;
$custom-dark: #000000;
JSON
{
  "hex": "#42286c",
  "rgb": {
    "r": 66,
    "g": 40,
    "b": 108
  },
  "hsl": {
    "h": 262.941,
    "s": 45.946,
    "l": 29.02
  },
  "oklch": {
    "l": 0.34704,
    "c": 0.1137,
    "h": 297.8
  },
  "luminance": 0.03759
}

Semantic roles & 50–950 ramp

primary
#42286C
secondary
#819E51
accent
#D652A3
background
#F7F5F9
surface
#EEEAF2
border
#C9C6CC
text
#09050D
muted
#7B797E

Preview Lab

Preview with #42286C

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

Preview Lab → · Contrast checker → · Palette generator →

#42286C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva