#42296F#42296F

#42296F is a dark, moderate violet. Relative luminance 0.039; OKLCH L 35.1% C 0.116 H 296.4°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#42296F
RGBrgb(66, 41, 111)
HSLhsl(261, 46%, 30%)
HSVhsv(261, 63%, 44%)
CMYKcmyk(40.5%, 63.1%, 0%, 56.5%)
CIE-LABlab(23.31, 28.63, -36.60)
CIE-LCHlch(23.31, 46.46, 308.03°)
OKLaboklab(35.11% 0.0516 -0.1041)
OKLCHoklch(35.11% 0.116 296.4)
XYZxyz(5.9082, 3.8917, 15.4757)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42296F #566F29
analogous
#29336F #42296F #65296F
triadic
#42296F #6F4229 #296F42
tetradic
#42296F #6F2933 #566F29 #296F65
square
#42296F #6F2933 #566F29 #296F65
split-complementary
#42296F #6F6529 #336F29
monochromatic
#0D0816 #271842 #42296F #5D3A9C #7A53BF

Accessibility & contrast

On white

11.81
#42296F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#42296F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42296F
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42296F#FFFFFF#000000##FFFFFF
##42296F1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003871
Deuteranopia (green-blind)
#09376D
Tritanopia (blue-blind)
#373847
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #42296f;
/* rgb */ color: rgb(66, 41, 111);
/* oklch */ color: oklch(35.1% 0.116 296.4);
Tailwind
colors: {
  custom: {
    50: '#7a6499',
    500: '#42296f',
    950: '#000000',
  },
}
SCSS
$custom: #42296f;
$custom-light: #7a6499;
$custom-dark: #000000;
JSON
{
  "hex": "#42296f",
  "rgb": {
    "r": 66,
    "g": 41,
    "b": 111
  },
  "hsl": {
    "h": 261.429,
    "s": 46.053,
    "l": 29.804
  },
  "oklch": {
    "l": 0.35106,
    "c": 0.11619,
    "h": 296.4
  },
  "luminance": 0.03892
}

Semantic roles & 50–950 ramp

primary
#42296F
secondary
#85A153
accent
#D652A7
background
#F7F6F9
surface
#EEEBF2
border
#C9C6CC
text
#09050E
muted
#7B7A7E

Preview Lab

Preview with #42296F

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

Preview Lab → · Contrast checker → · Palette generator →

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