#4F2A7E#4F2A7E

#4F2A7E is a dark, vivid violet. Relative luminance 0.048; OKLCH L 37.9% C 0.136 H 300.2°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#4F2A7E
RGBrgb(79, 42, 126)
HSLhsl(266, 50%, 33%)
HSVhsv(266, 67%, 49%)
CMYKcmyk(37.3%, 66.7%, 0%, 50.6%)
CIE-LABlab(26.23, 35.42, -41.36)
CIE-LCHlch(26.23, 54.46, 310.58°)
OKLaboklab(37.94% 0.0685 -0.1176)
OKLCHoklch(37.94% 0.136 300.2)
XYZxyz(7.8174, 4.8245, 20.2540)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2A7E #597E2A
analogous
#2A2F7E #4F2A7E #792A7E
triadic
#4F2A7E #7E4F2A #2A7E4F
tetradic
#4F2A7E #7E2A2F #597E2A #2A7E79
square
#4F2A7E #7E2A2F #597E2A #2A7E79
split-complementary
#4F2A7E #7E792A #2F7E2A
monochromatic
#150B22 #321B50 #4F2A7E #6C39AC #8B5AC8

Accessibility & contrast

On white

10.69
#4F2A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4F2A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2A7E
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2A7E#FFFFFF#000000##FFFFFF
##4F2A7E1.0010.691.9710.69
#FFFFFF10.691.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#043D7C
Tritanopia (blue-blind)
#453D50
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4f2a7e;
/* rgb */ color: rgb(79, 42, 126);
/* oklch */ color: oklch(37.9% 0.136 300.2);
Tailwind
colors: {
  custom: {
    50: '#8466a4',
    500: '#4f2a7e',
    950: '#000000',
  },
}
SCSS
$custom: #4f2a7e;
$custom-light: #8466a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2a7e",
  "rgb": {
    "r": 79,
    "g": 42,
    "b": 126
  },
  "hsl": {
    "h": 266.429,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37941,
    "c": 0.13613,
    "h": 300.2
  },
  "luminance": 0.04825
}

Semantic roles & 50–950 ramp

primary
#4F2A7E
secondary
#87AE56
accent
#DA4E9C
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4F2A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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