#4F2898#4F2898

#4F2898 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.170 H 292.9°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#4F2898
RGBrgb(79, 40, 152)
HSLhsl(261, 58%, 38%)
HSVhsv(261, 74%, 60%)
CMYKcmyk(48%, 73.7%, 0%, 40.4%)
CIE-LABlab(27.97, 43.72, -54.68)
CIE-LCHlch(27.97, 70.01, 308.64°)
OKLaboklab(39.85% 0.0663 -0.1568)
OKLCHoklch(39.85% 0.17 292.9)
XYZxyz(9.6492, 5.4465, 30.2426)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2898 #719828
analogous
#283998 #4F2898 #872898
triadic
#4F2898 #984F28 #28984F
tetradic
#4F2898 #982839 #719828 #289887
square
#4F2898 #982839 #719828 #289887
split-complementary
#4F2898 #988728 #399828
monochromatic
#1D0F37 #361B68 #4F2898 #6835C8 #8C64D6

Accessibility & contrast

On white

10.05
#4F2898 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#4F2898 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2898
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2898#FFFFFF#000000##FFFFFF
##4F28981.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#004096
Tritanopia (blue-blind)
#39455D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4f2898;
/* rgb */ color: rgb(79, 40, 152);
/* oklch */ color: oklch(39.9% 0.170 292.9);
Tailwind
colors: {
  custom: {
    50: '#8866b7',
    500: '#4f2898',
    950: '#000000',
  },
}
SCSS
$custom: #4f2898;
$custom-light: #8866b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2898",
  "rgb": {
    "r": 79,
    "g": 40,
    "b": 152
  },
  "hsl": {
    "h": 260.893,
    "s": 58.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39851,
    "c": 0.17022,
    "h": 292.9
  },
  "luminance": 0.05447
}

Semantic roles & 50–950 ramp

primary
#4F2898
secondary
#9CBC60
accent
#E246AB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4F2898

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

Preview Lab → · Contrast checker → · Palette generator →

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