#4F18A1#4F18A1

#4F18A1 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 39.0% C 0.195 H 292.8°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#4F18A1
RGBrgb(79, 24, 161)
HSLhsl(264, 74%, 36%)
HSVhsv(264, 85%, 63%)
CMYKcmyk(50.9%, 85.1%, 0%, 36.9%)
CIE-LABlab(26.41, 53.08, -62.73)
CIE-LCHlch(26.41, 82.17, 310.24°)
OKLaboklab(39.03% 0.0757 -0.1802)
OKLCHoklch(39.03% 0.195 292.8)
XYZxyz(9.9823, 4.8884, 34.1289)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F18A1 #6AA118
analogous
#1825A1 #4F18A1 #9418A1
triadic
#4F18A1 #A14F18 #18A14F
tetradic
#4F18A1 #A11825 #6AA118 #18A194
square
#4F18A1 #A11825 #6AA118 #18A194
split-complementary
#4F18A1 #A19418 #25A118
monochromatic
#1B0836 #35106C #4F18A1 #6920D6 #8B4FE5

Accessibility & contrast

On white

10.62
#4F18A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4F18A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F18A1
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F18A1#FFFFFF#000000##FFFFFF
##4F18A11.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A5
Deuteranopia (green-blind)
#003C9F
Tritanopia (blue-blind)
#34425F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4f18a1;
/* rgb */ color: rgb(79, 24, 161);
/* oklch */ color: oklch(39.0% 0.195 292.8);
Tailwind
colors: {
  custom: {
    50: '#8a5ebe',
    500: '#4f18a1',
    950: '#000000',
  },
}
SCSS
$custom: #4f18a1;
$custom-light: #8a5ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#4f18a1",
  "rgb": {
    "r": 79,
    "g": 24,
    "b": 161
  },
  "hsl": {
    "h": 264.088,
    "s": 74.054,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39026,
    "c": 0.19545,
    "h": 292.8
  },
  "luminance": 0.04889
}

Semantic roles & 50–950 ramp

primary
#4F18A1
secondary
#96C74E
accent
#F137A6
background
#F9F5FB
surface
#F1EAF7
border
#CBC6D0
text
#0D0512
muted
#7E7981

Preview Lab

Preview with #4F18A1

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

Preview Lab → · Contrast checker → · Palette generator →

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