#4F248A#4F248A

#4F248A is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.1% C 0.159 H 297.5°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#4F248A
RGBrgb(79, 36, 138)
HSLhsl(265, 59%, 34%)
HSVhsv(265, 74%, 54%)
CMYKcmyk(42.8%, 73.9%, 0%, 45.9%)
CIE-LABlab(26.04, 41.89, -49.19)
CIE-LCHlch(26.04, 64.61, 310.42°)
OKLaboklab(38.1% 0.0733 -0.1406)
OKLCHoklch(38.1% 0.159 297.5)
XYZxyz(8.4416, 4.7588, 24.5136)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F248A #5F8A24
analogous
#242C8A #4F248A #82248A
triadic
#4F248A #8A4F24 #248A4F
tetradic
#4F248A #8A242C #5F8A24 #248A82
square
#4F248A #8A242C #5F8A24 #248A82
split-complementary
#4F248A #8A8224 #2C8A24
monochromatic
#170B29 #331759 #4F248A #6B31BB #8A56D3

Accessibility & contrast

On white

10.76
#4F248A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4F248A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F248A
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F248A#FFFFFF#000000##FFFFFF
##4F248A1.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#003C88
Tritanopia (blue-blind)
#403E55
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4f248a;
/* rgb */ color: rgb(79, 36, 138);
/* oklch */ color: oklch(38.1% 0.159 297.5);
Tailwind
colors: {
  custom: {
    50: '#8663ad',
    500: '#4f248a',
    950: '#000000',
  },
}
SCSS
$custom: #4f248a;
$custom-light: #8663ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4f248a",
  "rgb": {
    "r": 79,
    "g": 36,
    "b": 138
  },
  "hsl": {
    "h": 265.294,
    "s": 58.621,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38105,
    "c": 0.15859,
    "h": 297.5
  },
  "luminance": 0.04759
}

Semantic roles & 50–950 ramp

primary
#4F248A
secondary
#8DB753
accent
#E246A0
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4F248A

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

Preview Lab → · Contrast checker → · Palette generator →

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