#4F2C98#4F2C98

#4F2C98 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.4% C 0.165 H 292.2°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#4F2C98
RGBrgb(79, 44, 152)
HSLhsl(259, 55%, 38%)
HSVhsv(259, 71%, 60%)
CMYKcmyk(48%, 71.1%, 0%, 40.4%)
CIE-LABlab(28.72, 41.62, -53.45)
CIE-LCHlch(28.72, 67.75, 307.91°)
OKLaboklab(40.39% 0.0625 -0.1532)
OKLCHoklch(40.39% 0.165 292.2)
XYZxyz(9.7910, 5.7303, 30.2899)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2C98 #75982C
analogous
#2C3F98 #4F2C98 #852C98
triadic
#4F2C98 #984F2C #2C984F
tetradic
#4F2C98 #982C3F #75982C #2C9885
square
#4F2C98 #982C3F #75982C #2C9885
split-complementary
#4F2C98 #98852C #3F982C
monochromatic
#1E1139 #361E69 #4F2C98 #683BC6 #8D6AD4

Accessibility & contrast

On white

9.78
#4F2C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4F2C98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2C98
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2C98#FFFFFF#000000##FFFFFF
##4F2C981.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f2c98;
/* rgb */ color: rgb(79, 44, 152);
/* oklch */ color: oklch(40.4% 0.165 292.2);
Tailwind
colors: {
  custom: {
    50: '#8768b7',
    500: '#4f2c98',
    950: '#000000',
  },
}
SCSS
$custom: #4f2c98;
$custom-light: #8768b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2c98",
  "rgb": {
    "r": 79,
    "g": 44,
    "b": 152
  },
  "hsl": {
    "h": 259.444,
    "s": 55.102,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40385,
    "c": 0.16545,
    "h": 292.2
  },
  "luminance": 0.05731
}

Semantic roles & 50–950 ramp

primary
#4F2C98
secondary
#9FBB65
accent
#DE49AE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4F2C98

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

Preview Lab → · Contrast checker → · Palette generator →

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