#4F2A7C#4F2A7C

#4F2A7C is a dark, vivid violet. Relative luminance 0.048; OKLCH L 37.8% C 0.134 H 300.9°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#4F2A7C
RGBrgb(79, 42, 124)
HSLhsl(267, 49%, 33%)
HSVhsv(267, 66%, 49%)
CMYKcmyk(36.3%, 66.1%, 0%, 51.4%)
CIE-LABlab(26.08, 34.88, -40.34)
CIE-LCHlch(26.08, 53.33, 310.84°)
OKLaboklab(37.79% 0.0687 -0.1146)
OKLCHoklch(37.79% 0.134 300.9)
XYZxyz(7.6896, 4.7734, 19.5811)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2A7C #577C2A
analogous
#2A2E7C #4F2A7C #782A7C
triadic
#4F2A7C #7C4F2A #2A7C4F
tetradic
#4F2A7C #7C2A2E #577C2A #2A7C78
square
#4F2A7C #7C2A2E #577C2A #2A7C78
split-complementary
#4F2A7C #7C782A #2E7C2A
monochromatic
#150B21 #321B4E #4F2A7C #6C39AA #8B59C7

Accessibility & contrast

On white

10.74
#4F2A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4F2A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2A7C
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2A7C#FFFFFF#000000##FFFFFF
##4F2A7C1.0010.741.9510.74
#FFFFFF10.741.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7F
Deuteranopia (green-blind)
#093D7A
Tritanopia (blue-blind)
#453C4F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4f2a7c;
/* rgb */ color: rgb(79, 42, 124);
/* oklch */ color: oklch(37.8% 0.134 300.9);
Tailwind
colors: {
  custom: {
    50: '#8466a2',
    500: '#4f2a7c',
    950: '#000000',
  },
}
SCSS
$custom: #4f2a7c;
$custom-light: #8466a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2a7c",
  "rgb": {
    "r": 79,
    "g": 42,
    "b": 124
  },
  "hsl": {
    "h": 267.073,
    "s": 49.398,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37785,
    "c": 0.13364,
    "h": 300.9
  },
  "luminance": 0.04773
}

Semantic roles & 50–950 ramp

primary
#4F2A7C
secondary
#85AD55
accent
#D94F9B
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4F2A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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