#4F2D7E#4F2D7E

#4F2D7E is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.4% C 0.132 H 299.5°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#4F2D7E
RGBrgb(79, 45, 126)
HSLhsl(265, 47%, 34%)
HSVhsv(265, 64%, 49%)
CMYKcmyk(37.3%, 64.3%, 0%, 50.6%)
CIE-LABlab(26.86, 33.71, -40.34)
CIE-LCHlch(26.86, 52.56, 309.88°)
OKLaboklab(38.4% 0.0648 -0.1146)
OKLCHoklch(38.4% 0.132 299.5)
XYZxyz(7.9278, 5.0453, 20.2908)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2D7E #5C7E2D
analogous
#2D337E #4F2D7E #772D7E
triadic
#4F2D7E #7E4F2D #2D7E4F
tetradic
#4F2D7E #7E2D33 #5C7E2D #2D7E77
square
#4F2D7E #7E2D33 #5C7E2D #2D7E77
split-complementary
#4F2D7E #7E772D #337E2D
monochromatic
#160D24 #331D51 #4F2D7E #6B3DAB #8A5FC6

Accessibility & contrast

On white

10.45
#4F2D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4F2D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2D7E
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2D7E#FFFFFF#000000##FFFFFF
##4F2D7E1.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#0C3F7C
Tritanopia (blue-blind)
#453F51
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4f2d7e;
/* rgb */ color: rgb(79, 45, 126);
/* oklch */ color: oklch(38.4% 0.132 299.5);
Tailwind
colors: {
  custom: {
    50: '#8468a4',
    500: '#4f2d7e',
    950: '#000000',
  },
}
SCSS
$custom: #4f2d7e;
$custom-light: #8468a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2d7e",
  "rgb": {
    "r": 79,
    "g": 45,
    "b": 126
  },
  "hsl": {
    "h": 265.185,
    "s": 47.368,
    "l": 33.529
  },
  "oklch": {
    "l": 0.384,
    "c": 0.13166,
    "h": 299.5
  },
  "luminance": 0.05045
}

Semantic roles & 50–950 ramp

primary
#4F2D7E
secondary
#8AAC5A
accent
#D7519F
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4F2D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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