#4F2C97#4F2C97

#4F2C97 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.3% C 0.164 H 292.4°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#4F2C97
RGBrgb(79, 44, 151)
HSLhsl(260, 55%, 38%)
HSVhsv(260, 71%, 59%)
CMYKcmyk(47.7%, 70.9%, 0%, 40.8%)
CIE-LABlab(28.64, 41.34, -52.98)
CIE-LCHlch(28.64, 67.20, 307.96°)
OKLaboklab(40.3% 0.0627 -0.1518)
OKLCHoklch(40.3% 0.164 292.4)
XYZxyz(9.7095, 5.6977, 29.8603)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2C97 #74972C
analogous
#2C3E97 #4F2C97 #842C97
triadic
#4F2C97 #974F2C #2C974F
tetradic
#4F2C97 #972C3E #74972C #2C9784
square
#4F2C97 #972C3E #74972C #2C9784
split-complementary
#4F2C97 #97842C #3E972C
monochromatic
#1D1038 #361E68 #4F2C97 #683AC6 #8C6AD4

Accessibility & contrast

On white

9.81
#4F2C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4F2C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2C97
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2C97#FFFFFF#000000##FFFFFF
##4F2C971.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#004195
Tritanopia (blue-blind)
#39475E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4f2c97;
/* rgb */ color: rgb(79, 44, 151);
/* oklch */ color: oklch(40.3% 0.164 292.4);
Tailwind
colors: {
  custom: {
    50: '#8768b6',
    500: '#4f2c97',
    950: '#000000',
  },
}
SCSS
$custom: #4f2c97;
$custom-light: #8768b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2c97",
  "rgb": {
    "r": 79,
    "g": 44,
    "b": 151
  },
  "hsl": {
    "h": 259.626,
    "s": 54.872,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40298,
    "c": 0.16424,
    "h": 292.4
  },
  "luminance": 0.05698
}

Semantic roles & 50–950 ramp

primary
#4F2C97
secondary
#9EBA65
accent
#DE4AAE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4F2C97

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

Preview Lab → · Contrast checker → · Palette generator →

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