#4F29A5#4F29A5

#4F29A5 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.2% C 0.184 H 289.8°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#4F29A5
RGBrgb(79, 41, 165)
HSLhsl(258, 60%, 40%)
HSVhsv(258, 75%, 65%)
CMYKcmyk(52.1%, 75.2%, 0%, 35.3%)
CIE-LABlab(29.32, 46.87, -60.37)
CIE-LCHlch(29.32, 76.43, 307.83°)
OKLaboklab(41.17% 0.0623 -0.1735)
OKLCHoklch(41.17% 0.184 289.8)
XYZxyz(10.8070, 5.9643, 36.1718)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F29A5 #7FA529
analogous
#2941A5 #4F29A5 #8D29A5
triadic
#4F29A5 #A54F29 #29A54F
tetradic
#4F29A5 #A52941 #7FA529 #29A58D
square
#4F29A5 #A52941 #7FA529 #29A58D
split-complementary
#4F29A5 #A58D29 #41A529
monochromatic
#201143 #381D74 #4F29A5 #693DCF #8F6EDB

Accessibility & contrast

On white

9.58
#4F29A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4F29A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F29A5
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F29A5#FFFFFF#000000##FFFFFF
##4F29A51.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A9
Deuteranopia (green-blind)
#0042A3
Tritanopia (blue-blind)
#304B65
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4f29a5;
/* rgb */ color: rgb(79, 41, 165);
/* oklch */ color: oklch(41.2% 0.184 289.8);
Tailwind
colors: {
  custom: {
    50: '#8967c1',
    500: '#4f29a5',
    950: '#000000',
  },
}
SCSS
$custom: #4f29a5;
$custom-light: #8967c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f29a5",
  "rgb": {
    "r": 79,
    "g": 41,
    "b": 165
  },
  "hsl": {
    "h": 258.387,
    "s": 60.194,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41165,
    "c": 0.18432,
    "h": 289.8
  },
  "luminance": 0.05965
}

Semantic roles & 50–950 ramp

primary
#4F29A5
secondary
#A6C268
accent
#E344B3
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #4F29A5

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

Preview Lab → · Contrast checker → · Palette generator →

#4F29A5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva