#42196F#42196F

#42196F is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.139 H 300.5°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#42196F
RGBrgb(66, 25, 111)
HSLhsl(269, 63%, 27%)
HSVhsv(269, 77%, 44%)
CMYKcmyk(40.5%, 77.5%, 0%, 56.5%)
CIE-LABlab(20.05, 37.58, -41.89)
CIE-LCHlch(20.05, 56.27, 311.90°)
OKLaboklab(32.76% 0.0704 -0.1196)
OKLCHoklch(32.76% 0.139 300.5)
XYZxyz(5.4629, 3.0012, 15.3273)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42196F #466F19
analogous
#191B6F #42196F #6D196F
triadic
#42196F #6F4219 #196F42
tetradic
#42196F #6F191B #466F19 #196F6D
square
#42196F #6F191B #466F19 #196F6D
split-complementary
#42196F #6F6D19 #1B6F19
monochromatic
#0F0619 #240E3D #42196F #6024A1 #7E32D1

Accessibility & contrast

On white

13.12
#42196F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#42196F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42196F
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42196F#FFFFFF#000000##FFFFFF
##42196F1.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003071
Deuteranopia (green-blind)
#00306D
Tritanopia (blue-blind)
#382F42
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #42196f;
/* rgb */ color: rgb(66, 25, 111);
/* oklch */ color: oklch(32.8% 0.139 300.5);
Tailwind
colors: {
  custom: {
    50: '#7b5a99',
    500: '#42196f',
    950: '#000000',
  },
}
SCSS
$custom: #42196f;
$custom-light: #7b5a99;
$custom-dark: #000000;
JSON
{
  "hex": "#42196f",
  "rgb": {
    "r": 66,
    "g": 25,
    "b": 111
  },
  "hsl": {
    "h": 268.605,
    "s": 63.235,
    "l": 26.667
  },
  "oklch": {
    "l": 0.32763,
    "c": 0.13877,
    "h": 300.5
  },
  "luminance": 0.03001
}

Semantic roles & 50–950 ramp

primary
#42196F
secondary
#74A43F
accent
#E64298
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #42196F

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

Preview Lab → · Contrast checker → · Palette generator →

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