#4F2A98#4F2A98

#4F2A98 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.1% C 0.168 H 292.6°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#4F2A98
RGBrgb(79, 42, 152)
HSLhsl(260, 57%, 38%)
HSVhsv(260, 72%, 60%)
CMYKcmyk(48%, 72.4%, 0%, 40.4%)
CIE-LABlab(28.34, 42.68, -54.08)
CIE-LCHlch(28.34, 68.89, 308.29°)
OKLaboklab(40.11% 0.0644 -0.155)
OKLCHoklch(40.11% 0.168 292.6)
XYZxyz(9.7183, 5.5849, 30.2656)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2A98 #73982A
analogous
#2A3C98 #4F2A98 #862A98
triadic
#4F2A98 #984F2A #2A984F
tetradic
#4F2A98 #982A3C #73982A #2A9886
square
#4F2A98 #982A3C #73982A #2A9886
split-complementary
#4F2A98 #98862A #3C982A
monochromatic
#1D1038 #361D68 #4F2A98 #6837C8 #8C67D5

Accessibility & contrast

On white

9.92
#4F2A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4F2A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2A98
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2A98#FFFFFF#000000##FFFFFF
##4F2A981.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f2a98;
/* rgb */ color: rgb(79, 42, 152);
/* oklch */ color: oklch(40.1% 0.168 292.6);
Tailwind
colors: {
  custom: {
    50: '#8767b7',
    500: '#4f2a98',
    950: '#000000',
  },
}
SCSS
$custom: #4f2a98;
$custom-light: #8767b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2a98",
  "rgb": {
    "r": 79,
    "g": 42,
    "b": 152
  },
  "hsl": {
    "h": 260.182,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40113,
    "c": 0.16787,
    "h": 292.6
  },
  "luminance": 0.05585
}

Semantic roles & 50–950 ramp

primary
#4F2A98
secondary
#9DBB62
accent
#E048AD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4F2A98

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

Preview Lab → · Contrast checker → · Palette generator →

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