#42259F#42259F

#42259F is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.182 H 285.0°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#42259F
RGBrgb(66, 37, 159)
HSLhsl(254, 62%, 38%)
HSVhsv(254, 77%, 62%)
CMYKcmyk(58.5%, 76.7%, 0%, 37.6%)
CIE-LABlab(26.69, 45.27, -61.11)
CIE-LCHlch(26.69, 76.05, 306.53°)
OKLaboklab(38.82% 0.0472 -0.176)
OKLCHoklch(38.82% 0.182 285)
XYZxyz(9.1644, 4.9840, 33.2733)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42259F #829F25
analogous
#25459F #42259F #7F259F
triadic
#42259F #9F4225 #259F42
tetradic
#42259F #9F2545 #829F25 #259F7F
square
#42259F #9F2545 #829F25 #259F7F
split-complementary
#42259F #9F7F25 #459F25
monochromatic
#190E3C #2D196D #42259F #5732CF #8064DB

Accessibility & contrast

On white

10.52
#42259F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#42259F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42259F
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42259F#FFFFFF#000000##FFFFFF
##42259F1.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A2
Deuteranopia (green-blind)
#003B9D
Tritanopia (blue-blind)
#104861
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #42259f;
/* rgb */ color: rgb(66, 37, 159);
/* oklch */ color: oklch(38.8% 0.182 285.0);
Tailwind
colors: {
  custom: {
    50: '#8263bd',
    500: '#42259f',
    950: '#000000',
  },
}
SCSS
$custom: #42259f;
$custom-light: #8263bd;
$custom-dark: #000000;
JSON
{
  "hex": "#42259f",
  "rgb": {
    "r": 66,
    "g": 37,
    "b": 159
  },
  "hsl": {
    "h": 254.262,
    "s": 62.245,
    "l": 38.431
  },
  "oklch": {
    "l": 0.3882,
    "c": 0.18226,
    "h": 285
  },
  "luminance": 0.04985
}

Semantic roles & 50–950 ramp

primary
#42259F
secondary
#A9C05F
accent
#E542BF
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #42259F

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

Preview Lab → · Contrast checker → · Palette generator →

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