#42269C#42269C

#42269C is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.178 H 285.4°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#42269C
RGBrgb(66, 38, 156)
HSLhsl(254, 61%, 38%)
HSVhsv(254, 76%, 61%)
CMYKcmyk(57.7%, 75.6%, 0%, 38.8%)
CIE-LABlab(26.58, 43.86, -59.47)
CIE-LCHlch(26.58, 73.90, 306.41°)
OKLaboklab(38.65% 0.0473 -0.1712)
OKLCHoklch(38.65% 0.178 285.4)
XYZxyz(8.9388, 4.9443, 31.9294)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42269C #809C26
analogous
#26459C #42269C #7D269C
triadic
#42269C #9C4226 #269C42
tetradic
#42269C #9C2645 #809C26 #269C7D
square
#42269C #9C2645 #809C26 #269C7D
split-complementary
#42269C #9C7D26 #459C26
monochromatic
#180E3A #2D1A6B #42269C #5732CD #7F63D9

Accessibility & contrast

On white

10.56
#42269C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#42269C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42269C
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42269C#FFFFFF#000000##FFFFFF
##42269C1.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #42269c;
/* rgb */ color: rgb(66, 38, 156);
/* oklch */ color: oklch(38.7% 0.178 285.4);
Tailwind
colors: {
  custom: {
    50: '#8164ba',
    500: '#42269c',
    950: '#000000',
  },
}
SCSS
$custom: #42269c;
$custom-light: #8164ba;
$custom-dark: #000000;
JSON
{
  "hex": "#42269c",
  "rgb": {
    "r": 66,
    "g": 38,
    "b": 156
  },
  "hsl": {
    "h": 254.237,
    "s": 60.825,
    "l": 38.039
  },
  "oklch": {
    "l": 0.38651,
    "c": 0.17764,
    "h": 285.4
  },
  "luminance": 0.04945
}

Semantic roles & 50–950 ramp

primary
#42269C
secondary
#A8BF5F
accent
#E444BE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #42269C

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

Preview Lab → · Contrast checker → · Palette generator →

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