#29157A#29157A

#29157A is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.156 H 281.0°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#29157A
RGBrgb(41, 21, 122)
HSLhsl(252, 71%, 28%)
HSVhsv(252, 83%, 48%)
CMYKcmyk(66.4%, 82.8%, 0%, 52.2%)
CIE-LABlab(17.52, 38.97, -53.24)
CIE-LCHlch(17.52, 65.98, 306.21°)
OKLaboklab(30.65% 0.0298 -0.1536)
OKLCHoklch(30.65% 0.156 281)
XYZxyz(4.6944, 2.4125, 18.6269)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#29157A #667A15
analogous
#15347A #29157A #5B157A
triadic
#29157A #7A2915 #157A29
tetradic
#29157A #7A1534 #667A15 #157A5B
square
#29157A #7A1534 #667A15 #157A5B
split-complementary
#29157A #7A5B15 #347A15
monochromatic
#09041A #170C46 #29157A #3B1EAE #512EDB

Accessibility & contrast

On white

14.16
#29157A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#29157A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #29157A
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##29157A#FFFFFF#000000##FFFFFF
##29157A1.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7D
Deuteranopia (green-blind)
#002778
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #29157a;
/* rgb */ color: rgb(41, 21, 122);
/* oklch */ color: oklch(30.6% 0.156 281.0);
Tailwind
colors: {
  custom: {
    50: '#6f56a2',
    500: '#29157a',
    950: '#000000',
  },
}
SCSS
$custom: #29157a;
$custom-light: #6f56a2;
$custom-dark: #000000;
JSON
{
  "hex": "#29157a",
  "rgb": {
    "r": 41,
    "g": 21,
    "b": 122
  },
  "hsl": {
    "h": 251.881,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30647,
    "c": 0.15649,
    "h": 281
  },
  "luminance": 0.02413
}

Semantic roles & 50–950 ramp

primary
#29157A
secondary
#98AF3B
accent
#ED3ACA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #29157A

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

Preview Lab → · Contrast checker → · Palette generator →

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