#4F2097#4F2097

#4F2097 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.178 H 294.4°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#4F2097
RGBrgb(79, 32, 151)
HSLhsl(264, 65%, 36%)
HSVhsv(264, 79%, 59%)
CMYKcmyk(47.7%, 78.8%, 0%, 40.8%)
CIE-LABlab(26.53, 47.28, -56.42)
CIE-LCHlch(26.53, 73.61, 309.96°)
OKLaboklab(38.81% 0.0736 -0.1618)
OKLCHoklch(38.81% 0.178 294.4)
XYZxyz(9.3253, 4.9294, 29.7323)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2097 #689720
analogous
#202D97 #4F2097 #8A2097
triadic
#4F2097 #974F20 #20974F
tetradic
#4F2097 #97202D #689720 #20978A
square
#4F2097 #97202D #689720 #20978A
split-complementary
#4F2097 #978A20 #2D9720
monochromatic
#1A0B32 #351564 #4F2097 #692BC9 #8B56DB

Accessibility & contrast

On white

10.57
#4F2097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4F2097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2097
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2097#FFFFFF#000000##FFFFFF
##4F20971.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003D95
Tritanopia (blue-blind)
#3A415B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4f2097;
/* rgb */ color: rgb(79, 32, 151);
/* oklch */ color: oklch(38.8% 0.178 294.4);
Tailwind
colors: {
  custom: {
    50: '#8861b7',
    500: '#4f2097',
    950: '#000000',
  },
}
SCSS
$custom: #4f2097;
$custom-light: #8861b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2097",
  "rgb": {
    "r": 79,
    "g": 32,
    "b": 151
  },
  "hsl": {
    "h": 263.697,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.38812,
    "c": 0.17775,
    "h": 294.4
  },
  "luminance": 0.0493
}

Semantic roles & 50–950 ramp

primary
#4F2097
secondary
#95BF54
accent
#E840A6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4F2097

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

Preview Lab → · Contrast checker → · Palette generator →

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