#42259A#42259A

#42259A is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.3% C 0.176 H 286.0°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#42259A
RGBrgb(66, 37, 154)
HSLhsl(255, 61%, 37%)
HSVhsv(255, 76%, 60%)
CMYKcmyk(57.1%, 76%, 0%, 39.6%)
CIE-LABlab(26.20, 43.79, -58.87)
CIE-LCHlch(26.20, 73.36, 306.64°)
OKLaboklab(38.33% 0.0486 -0.1695)
OKLCHoklch(38.33% 0.176 286)
XYZxyz(8.7393, 4.8140, 31.0343)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42259A #7D9A25
analogous
#25429A #42259A #7D259A
triadic
#42259A #9A4225 #259A42
tetradic
#42259A #9A2542 #7D9A25 #259A7D
square
#42259A #9A2542 #7D9A25 #259A7D
split-complementary
#42259A #9A7D25 #429A25
monochromatic
#180D37 #2D1969 #42259A #5731CB #7E60D9

Accessibility & contrast

On white

10.70
#42259A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#42259A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42259A
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42259A#FFFFFF#000000##FFFFFF
##42259A1.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419D
Deuteranopia (green-blind)
#003B98
Tritanopia (blue-blind)
#18465E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #42259a;
/* rgb */ color: rgb(66, 37, 154);
/* oklch */ color: oklch(38.3% 0.176 286.0);
Tailwind
colors: {
  custom: {
    50: '#8163b9',
    500: '#42259a',
    950: '#000000',
  },
}
SCSS
$custom: #42259a;
$custom-light: #8163b9;
$custom-dark: #000000;
JSON
{
  "hex": "#42259a",
  "rgb": {
    "r": 66,
    "g": 37,
    "b": 154
  },
  "hsl": {
    "h": 254.872,
    "s": 61.257,
    "l": 37.451
  },
  "oklch": {
    "l": 0.38326,
    "c": 0.17629,
    "h": 286
  },
  "luminance": 0.04814
}

Semantic roles & 50–950 ramp

primary
#42259A
secondary
#A6BE5D
accent
#E443BC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #42259A

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

Preview Lab → · Contrast checker → · Palette generator →

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