#4F2C96#4F2C96

#4F2C96 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.2% C 0.163 H 292.7°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#4F2C96
RGBrgb(79, 44, 150)
HSLhsl(260, 55%, 38%)
HSVhsv(260, 71%, 59%)
CMYKcmyk(47.3%, 70.7%, 0%, 41.2%)
CIE-LABlab(28.55, 41.05, -52.51)
CIE-LCHlch(28.55, 66.65, 308.02°)
OKLaboklab(40.21% 0.0629 -0.1504)
OKLCHoklch(40.21% 0.163 292.7)
XYZxyz(9.6286, 5.6653, 29.4344)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2C96 #73962C
analogous
#2C3E96 #4F2C96 #842C96
triadic
#4F2C96 #964F2C #2C964F
tetradic
#4F2C96 #962C3E #73962C #2C9684
square
#4F2C96 #962C3E #73962C #2C9684
split-complementary
#4F2C96 #96842C #3E962C
monochromatic
#1D1037 #361E67 #4F2C96 #683AC5 #8C69D3

Accessibility & contrast

On white

9.84
#4F2C96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4F2C96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2C96
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2C96#FFFFFF#000000##FFFFFF
##4F2C961.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004599
Deuteranopia (green-blind)
#004194
Tritanopia (blue-blind)
#3A475D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4f2c96;
/* rgb */ color: rgb(79, 44, 150);
/* oklch */ color: oklch(40.2% 0.163 292.7);
Tailwind
colors: {
  custom: {
    50: '#8768b6',
    500: '#4f2c96',
    950: '#000000',
  },
}
SCSS
$custom: #4f2c96;
$custom-light: #8768b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2c96",
  "rgb": {
    "r": 79,
    "g": 44,
    "b": 150
  },
  "hsl": {
    "h": 259.811,
    "s": 54.639,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40211,
    "c": 0.16301,
    "h": 292.7
  },
  "luminance": 0.05666
}

Semantic roles & 50–950 ramp

primary
#4F2C96
secondary
#9DBA64
accent
#DE4AAD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4F2C96

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

Preview Lab → · Contrast checker → · Palette generator →

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