#4F248B#4F248B

#4F248B is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.2% C 0.160 H 297.2°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#4F248B
RGBrgb(79, 36, 139)
HSLhsl(265, 59%, 34%)
HSVhsv(265, 74%, 55%)
CMYKcmyk(43.2%, 74.1%, 0%, 45.5%)
CIE-LABlab(26.12, 42.16, -49.68)
CIE-LCHlch(26.12, 65.16, 310.32°)
OKLaboklab(38.19% 0.0731 -0.142)
OKLCHoklch(38.19% 0.16 297.2)
XYZxyz(8.5143, 4.7879, 24.8967)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F248B #608B24
analogous
#242C8B #4F248B #83248B
triadic
#4F248B #8B4F24 #248B4F
tetradic
#4F248B #8B242C #608B24 #248B83
square
#4F248B #8B242C #608B24 #248B83
split-complementary
#4F248B #8B8324 #2C8B24
monochromatic
#180B2A #33175A #4F248B #6B31BC #8A56D3

Accessibility & contrast

On white

10.73
#4F248B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F248B
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F248B#FFFFFF#000000##FFFFFF
##4F248B1.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f248b;
/* rgb */ color: rgb(79, 36, 139);
/* oklch */ color: oklch(38.2% 0.160 297.2);
Tailwind
colors: {
  custom: {
    50: '#8663ae',
    500: '#4f248b',
    950: '#000000',
  },
}
SCSS
$custom: #4f248b;
$custom-light: #8663ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4f248b",
  "rgb": {
    "r": 79,
    "g": 36,
    "b": 139
  },
  "hsl": {
    "h": 265.049,
    "s": 58.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38192,
    "c": 0.15975,
    "h": 297.2
  },
  "luminance": 0.04788
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4F248B

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

Preview Lab → · Contrast checker → · Palette generator →

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