#42299A#42299A

#42299A is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.9% C 0.172 H 285.3°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#42299A
RGBrgb(66, 41, 154)
HSLhsl(253, 58%, 38%)
HSVhsv(253, 73%, 60%)
CMYKcmyk(57.1%, 73.4%, 0%, 39.6%)
CIE-LABlab(26.95, 41.66, -57.63)
CIE-LCHlch(26.95, 71.11, 305.87°)
OKLaboklab(38.86% 0.0454 -0.1659)
OKLCHoklch(38.86% 0.172 285.3)
XYZxyz(8.8707, 5.0767, 31.0781)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42299A #819A29
analogous
#29489A #42299A #7A299A
triadic
#42299A #9A4229 #299A42
tetradic
#42299A #9A2948 #819A29 #299A7A
square
#42299A #9A2948 #819A29 #299A7A
split-complementary
#42299A #9A7A29 #489A29
monochromatic
#190F39 #2D1C6A #42299A #5737CA #8067D7

Accessibility & contrast

On white

10.42
#42299A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#42299A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42299A
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42299A#FFFFFF#000000##FFFFFF
##42299A1.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439D
Deuteranopia (green-blind)
#003C98
Tritanopia (blue-blind)
#18485F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #42299a;
/* rgb */ color: rgb(66, 41, 154);
/* oklch */ color: oklch(38.9% 0.172 285.3);
Tailwind
colors: {
  custom: {
    50: '#8065b9',
    500: '#42299a',
    950: '#000000',
  },
}
SCSS
$custom: #42299a;
$custom-light: #8065b9;
$custom-dark: #000000;
JSON
{
  "hex": "#42299a",
  "rgb": {
    "r": 66,
    "g": 41,
    "b": 154
  },
  "hsl": {
    "h": 253.274,
    "s": 57.949,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38859,
    "c": 0.17196,
    "h": 285.3
  },
  "luminance": 0.05077
}

Semantic roles & 50–950 ramp

primary
#42299A
secondary
#A9BD62
accent
#E147BF
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #42299A

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

Preview Lab → · Contrast checker → · Palette generator →

#42299A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva