#42269A#42269A

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

Color values

HEX#42269A
RGBrgb(66, 38, 154)
HSLhsl(254, 60%, 38%)
HSVhsv(254, 75%, 60%)
CMYKcmyk(57.1%, 75.3%, 0%, 39.6%)
CIE-LABlab(26.38, 43.27, -58.56)
CIE-LCHlch(26.38, 72.81, 306.46°)
OKLaboklab(38.46% 0.0478 -0.1686)
OKLCHoklch(38.46% 0.175 285.8)
XYZxyz(8.7709, 4.8771, 31.0448)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42269A #7E9A26
analogous
#26449A #42269A #7C269A
triadic
#42269A #9A4226 #269A42
tetradic
#42269A #9A2644 #7E9A26 #269A7C
square
#42269A #9A2644 #7E9A26 #269A7C
split-complementary
#42269A #9A7C26 #449A26
monochromatic
#180E38 #2D1A69 #42269A #5732CB #7F62D8

Accessibility & contrast

On white

10.63
#42269A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#42269A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42269A
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42269A#FFFFFF#000000##FFFFFF
##42269A1.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)
#00419D
Deuteranopia (green-blind)
#003B98
Tritanopia (blue-blind)
#18465E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #42269a;
/* rgb */ color: rgb(66, 38, 154);
/* oklch */ color: oklch(38.5% 0.175 285.8);
Tailwind
colors: {
  custom: {
    50: '#8164b9',
    500: '#42269a',
    950: '#000000',
  },
}
SCSS
$custom: #42269a;
$custom-light: #8164b9;
$custom-dark: #000000;
JSON
{
  "hex": "#42269a",
  "rgb": {
    "r": 66,
    "g": 38,
    "b": 154
  },
  "hsl": {
    "h": 254.483,
    "s": 60.417,
    "l": 37.647
  },
  "oklch": {
    "l": 0.38455,
    "c": 0.17523,
    "h": 285.8
  },
  "luminance": 0.04878
}

Semantic roles & 50–950 ramp

primary
#42269A
secondary
#A7BE5E
accent
#E444BD
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #42269A

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

Preview Lab → · Contrast checker → · Palette generator →

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