#4F247E#4F247E

#4F247E is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.1% C 0.145 H 301.5°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#4F247E
RGBrgb(79, 36, 126)
HSLhsl(269, 56%, 32%)
HSVhsv(269, 71%, 49%)
CMYKcmyk(37.3%, 71.4%, 0%, 50.6%)
CIE-LABlab(25.05, 38.68, -43.28)
CIE-LCHlch(25.05, 58.04, 311.79°)
OKLaboklab(37.09% 0.0756 -0.1232)
OKLCHoklch(37.09% 0.145 301.5)
XYZxyz(7.6203, 4.4303, 20.1883)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F247E #537E24
analogous
#24267E #4F247E #7C247E
triadic
#4F247E #7E4F24 #247E4F
tetradic
#4F247E #7E2426 #537E24 #247E7C
square
#4F247E #7E2426 #537E24 #247E7C
split-complementary
#4F247E #7E7C24 #267E24
monochromatic
#13091F #31164E #4F247E #6D32AE #8B50CD

Accessibility & contrast

On white

11.13
#4F247E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#4F247E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F247E
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F247E#FFFFFF#000000##FFFFFF
##4F247E1.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#003B7C
Tritanopia (blue-blind)
#45394E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4f247e;
/* rgb */ color: rgb(79, 36, 126);
/* oklch */ color: oklch(37.1% 0.145 301.5);
Tailwind
colors: {
  custom: {
    50: '#8562a4',
    500: '#4f247e',
    950: '#000000',
  },
}
SCSS
$custom: #4f247e;
$custom-light: #8562a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4f247e",
  "rgb": {
    "r": 79,
    "g": 36,
    "b": 126
  },
  "hsl": {
    "h": 268.667,
    "s": 55.556,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37091,
    "c": 0.14456,
    "h": 301.5
  },
  "luminance": 0.0443
}

Semantic roles & 50–950 ramp

primary
#4F247E
secondary
#81B04E
accent
#DF4997
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4F247E

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

Preview Lab → · Contrast checker → · Palette generator →

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