#4F2D9C#4F2D9C

#4F2D9C is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.9% C 0.169 H 291.1°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#4F2D9C
RGBrgb(79, 45, 156)
HSLhsl(258, 55%, 39%)
HSVhsv(258, 71%, 61%)
CMYKcmyk(49.4%, 71.2%, 0%, 38.8%)
CIE-LABlab(29.26, 42.23, -55.02)
CIE-LCHlch(29.26, 69.36, 307.51°)
OKLaboklab(40.87% 0.0608 -0.1578)
OKLCHoklch(40.87% 0.169 291.1)
XYZxyz(10.1619, 5.9390, 32.0569)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2D9C #7A9C2D
analogous
#2D439C #4F2D9C #872D9C
triadic
#4F2D9C #9C4F2D #2D9C4F
tetradic
#4F2D9C #9C2D43 #7A9C2D #2D9C87
square
#4F2D9C #9C2D43 #7A9C2D #2D9C87
split-complementary
#4F2D9C #9C872D #439C2D
monochromatic
#1F123D #371F6D #4F2D9C #693FC8 #8E6ED5

Accessibility & contrast

On white

9.60
#4F2D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F2D9C
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2D9C#FFFFFF#000000##FFFFFF
##4F2D9C1.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479F
Deuteranopia (green-blind)
#00439A
Tritanopia (blue-blind)
#364961
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4f2d9c;
/* rgb */ color: rgb(79, 45, 156);
/* oklch */ color: oklch(40.9% 0.169 291.1);
Tailwind
colors: {
  custom: {
    50: '#8869ba',
    500: '#4f2d9c',
    950: '#000000',
  },
}
SCSS
$custom: #4f2d9c;
$custom-light: #8869ba;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2d9c",
  "rgb": {
    "r": 79,
    "g": 45,
    "b": 156
  },
  "hsl": {
    "h": 258.378,
    "s": 55.224,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40873,
    "c": 0.16908,
    "h": 291.1
  },
  "luminance": 0.05939
}

Semantic roles & 50–950 ramp

primary
#4F2D9C
secondary
#A3BC68
accent
#DF49B1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4F2D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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