#4F2398#4F2398

#4F2398 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.176 H 293.7°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#4F2398
RGBrgb(79, 35, 152)
HSLhsl(263, 63%, 37%)
HSVhsv(263, 77%, 60%)
CMYKcmyk(48%, 77%, 0%, 40.4%)
CIE-LABlab(27.10, 46.17, -56.10)
CIE-LCHlch(27.10, 72.66, 309.46°)
OKLaboklab(39.24% 0.0708 -0.1609)
OKLCHoklch(39.24% 0.176 293.7)
XYZxyz(9.4914, 5.1310, 30.1900)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2398 #6C9823
analogous
#233298 #4F2398 #8A2398
triadic
#4F2398 #984F23 #23984F
tetradic
#4F2398 #982332 #6C9823 #23988A
square
#4F2398 #982332 #6C9823 #23988A
split-complementary
#4F2398 #988A23 #329823
monochromatic
#1B0C35 #351866 #4F2398 #692ECA #8B5CD9

Accessibility & contrast

On white

10.36
#4F2398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4F2398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2398
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2398#FFFFFF#000000##FFFFFF
##4F23981.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#003E96
Tritanopia (blue-blind)
#39435C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4f2398;
/* rgb */ color: rgb(79, 35, 152);
/* oklch */ color: oklch(39.2% 0.176 293.7);
Tailwind
colors: {
  custom: {
    50: '#8863b7',
    500: '#4f2398',
    950: '#000000',
  },
}
SCSS
$custom: #4f2398;
$custom-light: #8863b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2398",
  "rgb": {
    "r": 79,
    "g": 35,
    "b": 152
  },
  "hsl": {
    "h": 262.564,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39241,
    "c": 0.17577,
    "h": 293.7
  },
  "luminance": 0.05131
}

Semantic roles & 50–950 ramp

primary
#4F2398
secondary
#98BE59
accent
#E642A8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4F2398

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

Preview Lab → · Contrast checker → · Palette generator →

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