#4F248D#4F248D

#4F248D is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.162 H 296.6°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#4F248D
RGBrgb(79, 36, 141)
HSLhsl(265, 59%, 35%)
HSVhsv(265, 74%, 55%)
CMYKcmyk(44%, 74.5%, 0%, 44.7%)
CIE-LABlab(26.29, 42.70, -50.64)
CIE-LCHlch(26.29, 66.24, 310.14°)
OKLaboklab(38.37% 0.0726 -0.1449)
OKLCHoklch(38.37% 0.162 296.6)
XYZxyz(8.6618, 4.8469, 25.6733)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F248D #628D24
analogous
#242E8D #4F248D #83248D
triadic
#4F248D #8D4F24 #248D4F
tetradic
#4F248D #8D242E #628D24 #248D83
square
#4F248D #8D242E #628D24 #248D83
split-complementary
#4F248D #8D8324 #2E8D24
monochromatic
#180B2B #34185C #4F248D #6A30BE #8A57D4

Accessibility & contrast

On white

10.66
#4F248D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4F248D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F248D
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F248D#FFFFFF#000000##FFFFFF
##4F248D1.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f248d;
/* rgb */ color: rgb(79, 36, 141);
/* oklch */ color: oklch(38.4% 0.162 296.6);
Tailwind
colors: {
  custom: {
    50: '#8663af',
    500: '#4f248d',
    950: '#000000',
  },
}
SCSS
$custom: #4f248d;
$custom-light: #8663af;
$custom-dark: #000000;
JSON
{
  "hex": "#4f248d",
  "rgb": {
    "r": 79,
    "g": 36,
    "b": 141
  },
  "hsl": {
    "h": 264.571,
    "s": 59.322,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38368,
    "c": 0.16206,
    "h": 296.6
  },
  "luminance": 0.04847
}

Semantic roles & 50–950 ramp

primary
#4F248D
secondary
#8FB854
accent
#E345A2
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4F248D

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

Preview Lab → · Contrast checker → · Palette generator →

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