#4F2F97#4F2F97

#4F2F97 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.7% C 0.160 H 291.8°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#4F2F97
RGBrgb(79, 47, 151)
HSLhsl(258, 53%, 39%)
HSVhsv(258, 69%, 59%)
CMYKcmyk(47.7%, 68.9%, 0%, 40.8%)
CIE-LABlab(29.23, 39.69, -52.01)
CIE-LCHlch(29.23, 65.42, 307.35°)
OKLaboklab(40.73% 0.0596 -0.1489)
OKLCHoklch(40.73% 0.16 291.8)
XYZxyz(9.8253, 5.9293, 29.8989)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2F97 #77972F
analogous
#2F4397 #4F2F97 #832F97
triadic
#4F2F97 #974F2F #2F974F
tetradic
#4F2F97 #972F43 #77972F #2F9783
square
#4F2F97 #972F43 #77972F #2F9783
split-complementary
#4F2F97 #97832F #43972F
monochromatic
#1E123A #372068 #4F2F97 #6840C3 #8D6ED2

Accessibility & contrast

On white

9.61
#4F2F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4F2F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2F97
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2F97#FFFFFF#000000##FFFFFF
##4F2F971.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469A
Deuteranopia (green-blind)
#004395
Tritanopia (blue-blind)
#39495F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4f2f97;
/* rgb */ color: rgb(79, 47, 151);
/* oklch */ color: oklch(40.7% 0.160 291.8);
Tailwind
colors: {
  custom: {
    50: '#876ab6',
    500: '#4f2f97',
    950: '#000000',
  },
}
SCSS
$custom: #4f2f97;
$custom-light: #876ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2f97",
  "rgb": {
    "r": 79,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 258.462,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40725,
    "c": 0.16045,
    "h": 291.8
  },
  "luminance": 0.0593
}

Semantic roles & 50–950 ramp

primary
#4F2F97
secondary
#A0B968
accent
#DC4CB0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4F2F97

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

Preview Lab → · Contrast checker → · Palette generator →

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