#4F38AB#4F38AB

#4F38AB is a dark, vivid violet. Relative luminance 0.074; OKLCH L 43.8% C 0.174 H 285.9°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#4F38AB
RGBrgb(79, 56, 171)
HSLhsl(252, 51%, 45%)
HSVhsv(252, 67%, 67%)
CMYKcmyk(53.8%, 67.3%, 0%, 32.9%)
CIE-LABlab(32.77, 40.54, -58.35)
CIE-LCHlch(32.77, 71.05, 304.79°)
OKLaboklab(43.78% 0.0477 -0.1676)
OKLCHoklch(43.78% 0.174 285.9)
XYZxyz(11.9871, 7.4302, 39.3227)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F38AB #94AB38
analogous
#385BAB #4F38AB #8938AB
triadic
#4F38AB #AB4F38 #38AB4F
tetradic
#4F38AB #AB385B #94AB38 #38AB89
square
#4F38AB #AB385B #94AB38 #38AB89
split-complementary
#4F38AB #AB8938 #5BAB38
monochromatic
#241A4F #3A297D #4F38AB #6E58C8 #9686D7

Accessibility & contrast

On white

8.45
#4F38AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#4F38AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F38AB
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F38AB#FFFFFF#000000##FFFFFF
##4F38AB1.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AF
Deuteranopia (green-blind)
#004AA9
Tritanopia (blue-blind)
#29556D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4f38ab;
/* rgb */ color: rgb(79, 56, 171);
/* oklch */ color: oklch(43.8% 0.174 285.9);
Tailwind
colors: {
  custom: {
    50: '#8970c5',
    500: '#4f38ab',
    950: '#000000',
  },
}
SCSS
$custom: #4f38ab;
$custom-light: #8970c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4f38ab",
  "rgb": {
    "r": 79,
    "g": 56,
    "b": 171
  },
  "hsl": {
    "h": 252,
    "s": 50.661,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43782,
    "c": 0.17424,
    "h": 285.9
  },
  "luminance": 0.07431
}

Semantic roles & 50–950 ramp

primary
#4F38AB
secondary
#B4C17D
accent
#DA4EBE
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4F38AB

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

Preview Lab → · Contrast checker → · Palette generator →

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