#4F2998#4F2998

#4F2998 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.0% C 0.169 H 292.8°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#4F2998
RGBrgb(79, 41, 152)
HSLhsl(261, 58%, 38%)
HSVhsv(261, 73%, 60%)
CMYKcmyk(48%, 73%, 0%, 40.4%)
CIE-LABlab(28.15, 43.21, -54.38)
CIE-LCHlch(28.15, 69.46, 308.47°)
OKLaboklab(39.98% 0.0654 -0.1559)
OKLCHoklch(39.98% 0.169 292.8)
XYZxyz(9.6833, 5.5148, 30.2539)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2998 #729829
analogous
#293A98 #4F2998 #872998
triadic
#4F2998 #984F29 #29984F
tetradic
#4F2998 #98293A #729829 #299887
square
#4F2998 #98293A #729829 #299887
split-complementary
#4F2998 #988729 #3A9829
monochromatic
#1D0F38 #361C68 #4F2998 #6836C8 #8C66D6

Accessibility & contrast

On white

9.99
#4F2998 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#4F2998 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2998
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2998#FFFFFF#000000##FFFFFF
##4F29981.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449B
Deuteranopia (green-blind)
#004096
Tritanopia (blue-blind)
#39465E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4f2998;
/* rgb */ color: rgb(79, 41, 152);
/* oklch */ color: oklch(40.0% 0.169 292.8);
Tailwind
colors: {
  custom: {
    50: '#8866b7',
    500: '#4f2998',
    950: '#000000',
  },
}
SCSS
$custom: #4f2998;
$custom-light: #8866b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2998",
  "rgb": {
    "r": 79,
    "g": 41,
    "b": 152
  },
  "hsl": {
    "h": 260.541,
    "s": 57.513,
    "l": 37.843
  },
  "oklch": {
    "l": 0.39981,
    "c": 0.16905,
    "h": 292.8
  },
  "luminance": 0.05515
}

Semantic roles & 50–950 ramp

primary
#4F2998
secondary
#9DBC61
accent
#E147AC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4F2998

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

Preview Lab → · Contrast checker → · Palette generator →

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