#4F2198#4F2198

#4F2198 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.0% C 0.178 H 294.0°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#4F2198
RGBrgb(79, 33, 152)
HSLhsl(263, 64%, 36%)
HSVhsv(263, 78%, 60%)
CMYKcmyk(48%, 78.3%, 0%, 40.4%)
CIE-LABlab(26.78, 47.10, -56.63)
CIE-LCHlch(26.78, 73.65, 309.75°)
OKLaboklab(39.02% 0.0724 -0.1624)
OKLCHoklch(39.02% 0.178 294)
XYZxyz(9.4342, 5.0167, 30.1709)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2198 #6A9821
analogous
#212F98 #4F2198 #8B2198
triadic
#4F2198 #984F21 #21984F
tetradic
#4F2198 #98212F #6A9821 #21988B
square
#4F2198 #98212F #6A9821 #21988B
split-complementary
#4F2198 #988B21 #2F9821
monochromatic
#1B0B33 #351666 #4F2198 #692CCA #8B59DB

Accessibility & contrast

On white

10.48
#4F2198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4F2198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2198
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2198#FFFFFF#000000##FFFFFF
##4F21981.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#003D96
Tritanopia (blue-blind)
#39425C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4f2198;
/* rgb */ color: rgb(79, 33, 152);
/* oklch */ color: oklch(39.0% 0.178 294.0);
Tailwind
colors: {
  custom: {
    50: '#8862b7',
    500: '#4f2198',
    950: '#000000',
  },
}
SCSS
$custom: #4f2198;
$custom-light: #8862b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2198",
  "rgb": {
    "r": 79,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 263.193,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39015,
    "c": 0.17785,
    "h": 294
  },
  "luminance": 0.05017
}

Semantic roles & 50–950 ramp

primary
#4F2198
secondary
#96BF56
accent
#E740A7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4F2198

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

Preview Lab → · Contrast checker → · Palette generator →

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