#4F159E#4F159E

#4F159E is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.5% C 0.195 H 293.8°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#4F159E
RGBrgb(79, 21, 158)
HSLhsl(265, 77%, 35%)
HSVhsv(265, 87%, 62%)
CMYKcmyk(50%, 86.7%, 0%, 38%)
CIE-LABlab(25.76, 53.34, -61.97)
CIE-LCHlch(25.76, 81.77, 310.72°)
OKLaboklab(38.49% 0.0785 -0.178)
OKLCHoklch(38.49% 0.195 293.8)
XYZxyz(9.6625, 4.6669, 32.7328)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F159E #649E15
analogous
#15209E #4F159E #93159E
triadic
#4F159E #9E4F15 #159E4F
tetradic
#4F159E #9E1520 #649E15 #159E93
square
#4F159E #9E1520 #649E15 #159E93
split-complementary
#4F159E #9E9315 #209E15
monochromatic
#190732 #340E68 #4F159E #6A1CD4 #8A47E7

Accessibility & contrast

On white

10.86
#4F159E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#4F159E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F159E
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F159E#FFFFFF#000000##FFFFFF
##4F159E1.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA2
Deuteranopia (green-blind)
#003B9C
Tritanopia (blue-blind)
#36405D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4f159e;
/* rgb */ color: rgb(79, 21, 158);
/* oklch */ color: oklch(38.5% 0.195 293.8);
Tailwind
colors: {
  custom: {
    50: '#8a5dbc',
    500: '#4f159e',
    950: '#000000',
  },
}
SCSS
$custom: #4f159e;
$custom-light: #8a5dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#4f159e",
  "rgb": {
    "r": 79,
    "g": 21,
    "b": 158
  },
  "hsl": {
    "h": 265.401,
    "s": 76.536,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38489,
    "c": 0.19452,
    "h": 293.8
  },
  "luminance": 0.04667
}

Semantic roles & 50–950 ramp

primary
#4F159E
secondary
#91C747
accent
#F335A2
background
#F9F5FB
surface
#F1E9F7
border
#CBC5D0
text
#0D0512
muted
#7E7981

Preview Lab

Preview with #4F159E

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

Preview Lab → · Contrast checker → · Palette generator →

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