#4F247B#4F247B

#4F247B is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.8% C 0.141 H 302.6°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#4F247B
RGBrgb(79, 36, 123)
HSLhsl(270, 55%, 31%)
HSVhsv(270, 71%, 48%)
CMYKcmyk(35.8%, 70.7%, 0%, 51.8%)
CIE-LABlab(24.81, 37.88, -41.76)
CIE-LCHlch(24.81, 56.38, 312.21°)
OKLaboklab(36.85% 0.076 -0.1188)
OKLCHoklch(36.85% 0.141 302.6)
XYZxyz(7.4296, 4.3541, 19.1841)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F247B #507B24
analogous
#24247B #4F247B #7A247B
triadic
#4F247B #7B4F24 #247B4F
tetradic
#4F247B #7B2424 #507B24 #247B7A
square
#4F247B #7B2424 #507B24 #247B7A
split-complementary
#4F247B #7B7A24 #247B24
monochromatic
#12081C #31164C #4F247B #6D32AA #8C4ECB

Accessibility & contrast

On white

11.23
#4F247B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4F247B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F247B
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F247B#FFFFFF#000000##FFFFFF
##4F247B1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7E
Deuteranopia (green-blind)
#003B79
Tritanopia (blue-blind)
#46384C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4f247b;
/* rgb */ color: rgb(79, 36, 123);
/* oklch */ color: oklch(36.8% 0.141 302.6);
Tailwind
colors: {
  custom: {
    50: '#8462a2',
    500: '#4f247b',
    950: '#000000',
  },
}
SCSS
$custom: #4f247b;
$custom-light: #8462a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f247b",
  "rgb": {
    "r": 79,
    "g": 36,
    "b": 123
  },
  "hsl": {
    "h": 269.655,
    "s": 54.717,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36847,
    "c": 0.14103,
    "h": 302.6
  },
  "luminance": 0.04354
}

Semantic roles & 50–950 ramp

primary
#4F247B
secondary
#7EAD4D
accent
#DE4A95
background
#F8F5FA
surface
#EFEAF3
border
#CAC6CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4F247B

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

Preview Lab → · Contrast checker → · Palette generator →

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