#42259C#42259C

#42259C is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.5% C 0.179 H 285.6°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#42259C
RGBrgb(66, 37, 156)
HSLhsl(255, 62%, 38%)
HSVhsv(255, 76%, 61%)
CMYKcmyk(57.7%, 76.3%, 0%, 38.8%)
CIE-LABlab(26.39, 44.38, -59.77)
CIE-LCHlch(26.39, 74.44, 306.60°)
OKLaboklab(38.52% 0.0481 -0.1721)
OKLCHoklch(38.52% 0.179 285.6)
XYZxyz(8.9073, 4.8812, 31.9188)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42259C #7F9C25
analogous
#25439C #42259C #7D259C
triadic
#42259C #9C4225 #259C42
tetradic
#42259C #9C2543 #7F9C25 #259C7D
square
#42259C #9C2543 #7F9C25 #259C7D
split-complementary
#42259C #9C7D25 #439C25
monochromatic
#180E39 #2D196B #42259C #5731CD #7F62DA

Accessibility & contrast

On white

10.63
#42259C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#42259C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42259C
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42259C#FFFFFF#000000##FFFFFF
##42259C1.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#003B9A
Tritanopia (blue-blind)
#15465F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #42259c;
/* rgb */ color: rgb(66, 37, 156);
/* oklch */ color: oklch(38.5% 0.179 285.6);
Tailwind
colors: {
  custom: {
    50: '#8163ba',
    500: '#42259c',
    950: '#000000',
  },
}
SCSS
$custom: #42259c;
$custom-light: #8163ba;
$custom-dark: #000000;
JSON
{
  "hex": "#42259c",
  "rgb": {
    "r": 66,
    "g": 37,
    "b": 156
  },
  "hsl": {
    "h": 254.622,
    "s": 61.658,
    "l": 37.843
  },
  "oklch": {
    "l": 0.38523,
    "c": 0.17868,
    "h": 285.6
  },
  "luminance": 0.04882
}

Semantic roles & 50–950 ramp

primary
#42259C
secondary
#A7BF5E
accent
#E543BD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #42259C

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

Preview Lab → · Contrast checker → · Palette generator →

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