#4F2D98#4F2D98

#4F2D98 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.5% C 0.164 H 292.0°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#4F2D98
RGBrgb(79, 45, 152)
HSLhsl(259, 54%, 39%)
HSVhsv(259, 70%, 60%)
CMYKcmyk(48%, 70.4%, 0%, 40.4%)
CIE-LABlab(28.92, 41.08, -53.13)
CIE-LCHlch(28.92, 67.16, 307.71°)
OKLaboklab(40.52% 0.0615 -0.1522)
OKLCHoklch(40.52% 0.164 292)
XYZxyz(9.8287, 5.8057, 30.3024)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2D98 #76982D
analogous
#2D4098 #4F2D98 #842D98
triadic
#4F2D98 #984F2D #2D984F
tetradic
#4F2D98 #982D40 #76982D #2D9884
square
#4F2D98 #982D40 #76982D #2D9884
split-complementary
#4F2D98 #98842D #40982D
monochromatic
#1E113A #361F69 #4F2D98 #683DC5 #8D6CD3

Accessibility & contrast

On white

9.72
#4F2D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4F2D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2D98
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2D98#FFFFFF#000000##FFFFFF
##4F2D981.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469B
Deuteranopia (green-blind)
#004296
Tritanopia (blue-blind)
#38485F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4f2d98;
/* rgb */ color: rgb(79, 45, 152);
/* oklch */ color: oklch(40.5% 0.164 292.0);
Tailwind
colors: {
  custom: {
    50: '#8769b7',
    500: '#4f2d98',
    950: '#000000',
  },
}
SCSS
$custom: #4f2d98;
$custom-light: #8769b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2d98",
  "rgb": {
    "r": 79,
    "g": 45,
    "b": 152
  },
  "hsl": {
    "h": 259.065,
    "s": 54.315,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40524,
    "c": 0.16421,
    "h": 292
  },
  "luminance": 0.05806
}

Semantic roles & 50–950 ramp

primary
#4F2D98
secondary
#A0BA66
accent
#DE4AAF
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4F2D98

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

Preview Lab → · Contrast checker → · Palette generator →

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