#4F248C#4F248C

#4F248C is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.3% C 0.161 H 296.9°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#4F248C
RGBrgb(79, 36, 140)
HSLhsl(265, 59%, 35%)
HSVhsv(265, 74%, 55%)
CMYKcmyk(43.6%, 74.3%, 0%, 45.1%)
CIE-LABlab(26.21, 42.43, -50.16)
CIE-LCHlch(26.21, 65.70, 310.23°)
OKLaboklab(38.28% 0.0729 -0.1435)
OKLCHoklch(38.28% 0.161 296.9)
XYZxyz(8.5877, 4.8173, 25.2832)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F248C #618C24
analogous
#242D8C #4F248C #83248C
triadic
#4F248C #8C4F24 #248C4F
tetradic
#4F248C #8C242D #618C24 #248C83
square
#4F248C #8C242D #618C24 #248C83
split-complementary
#4F248C #8C8324 #2D8C24
monochromatic
#180B2B #34175B #4F248C #6A31BD #8A57D4

Accessibility & contrast

On white

10.70
#4F248C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4F248C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F248C
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F248C#FFFFFF#000000##FFFFFF
##4F248C1.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8F
Deuteranopia (green-blind)
#003D8A
Tritanopia (blue-blind)
#3F3F56
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4f248c;
/* rgb */ color: rgb(79, 36, 140);
/* oklch */ color: oklch(38.3% 0.161 296.9);
Tailwind
colors: {
  custom: {
    50: '#8663ae',
    500: '#4f248c',
    950: '#000000',
  },
}
SCSS
$custom: #4f248c;
$custom-light: #8663ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4f248c",
  "rgb": {
    "r": 79,
    "g": 36,
    "b": 140
  },
  "hsl": {
    "h": 264.808,
    "s": 59.091,
    "l": 34.51
  },
  "oklch": {
    "l": 0.3828,
    "c": 0.16091,
    "h": 296.9
  },
  "luminance": 0.04817
}

Semantic roles & 50–950 ramp

primary
#4F248C
secondary
#8FB854
accent
#E246A1
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4F248C

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

Preview Lab → · Contrast checker → · Palette generator →

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