#4F177F#4F177F

#4F177F is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.161 H 303.2°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#4F177F
RGBrgb(79, 23, 127)
HSLhsl(272, 69%, 29%)
HSVhsv(272, 82%, 50%)
CMYKcmyk(37.8%, 81.9%, 0%, 50.2%)
CIE-LABlab(23.02, 44.92, -47.20)
CIE-LCHlch(23.02, 65.16, 313.58°)
OKLaboklab(35.69% 0.0882 -0.1347)
OKLCHoklch(35.69% 0.161 303.2)
XYZxyz(7.3607, 3.8074, 20.4217)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F177F #477F17
analogous
#1B177F #4F177F #7F177B
triadic
#4F177F #7F4F17 #177F4F
tetradic
#4F177F #7F1B17 #477F17 #177B7F
square
#4F177F #7F1B17 #477F17 #177B7F
split-complementary
#4F177F #7B7F17 #177F1B
monochromatic
#10051A #2F0E4B #4F177F #6F20B3 #8F36DB

Accessibility & contrast

On white

11.92
#4F177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#4F177F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F177F
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F177F#FFFFFF#000000##FFFFFF
##4F177F1.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#00377D
Tritanopia (blue-blind)
#45334B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4f177f;
/* rgb */ color: rgb(79, 23, 127);
/* oklch */ color: oklch(35.7% 0.161 303.2);
Tailwind
colors: {
  custom: {
    50: '#865ca5',
    500: '#4f177f',
    950: '#000000',
  },
}
SCSS
$custom: #4f177f;
$custom-light: #865ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#4f177f",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 272.308,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3569,
    "c": 0.16096,
    "h": 303.2
  },
  "luminance": 0.03807
}

Semantic roles & 50–950 ramp

primary
#4F177F
secondary
#74B43E
accent
#EC3C8D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F177F

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

Preview Lab → · Contrast checker → · Palette generator →

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