#4F2B98#4F2B98

#4F2B98 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.2% C 0.167 H 292.4°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#4F2B98
RGBrgb(79, 43, 152)
HSLhsl(260, 56%, 38%)
HSVhsv(260, 72%, 60%)
CMYKcmyk(48%, 71.7%, 0%, 40.4%)
CIE-LABlab(28.53, 42.16, -53.77)
CIE-LCHlch(28.53, 68.32, 308.10°)
OKLaboklab(40.25% 0.0635 -0.1541)
OKLCHoklch(40.25% 0.167 292.4)
XYZxyz(9.7542, 5.6567, 30.2776)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2B98 #74982B
analogous
#2B3D98 #4F2B98 #852B98
triadic
#4F2B98 #984F2B #2B984F
tetradic
#4F2B98 #982B3D #74982B #2B9885
square
#4F2B98 #982B3D #74982B #2B9885
split-complementary
#4F2B98 #98852B #3D982B
monochromatic
#1D1039 #361E68 #4F2B98 #6839C7 #8C69D5

Accessibility & contrast

On white

9.85
#4F2B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4F2B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2B98
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2B98#FFFFFF#000000##FFFFFF
##4F2B981.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459B
Deuteranopia (green-blind)
#004196
Tritanopia (blue-blind)
#38475E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4f2b98;
/* rgb */ color: rgb(79, 43, 152);
/* oklch */ color: oklch(40.2% 0.167 292.4);
Tailwind
colors: {
  custom: {
    50: '#8767b7',
    500: '#4f2b98',
    950: '#000000',
  },
}
SCSS
$custom: #4f2b98;
$custom-light: #8767b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2b98",
  "rgb": {
    "r": 79,
    "g": 43,
    "b": 152
  },
  "hsl": {
    "h": 259.817,
    "s": 55.897,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40248,
    "c": 0.16666,
    "h": 292.4
  },
  "luminance": 0.05657
}

Semantic roles & 50–950 ramp

primary
#4F2B98
secondary
#9EBB64
accent
#DF49AD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4F2B98

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

Preview Lab → · Contrast checker → · Palette generator →

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