#4F38AA#4F38AA

#4F38AA is a dark, vivid violet. Relative luminance 0.074; OKLCH L 43.7% C 0.173 H 286.1°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#4F38AA
RGBrgb(79, 56, 170)
HSLhsl(252, 50%, 44%)
HSVhsv(252, 67%, 67%)
CMYKcmyk(53.5%, 67.1%, 0%, 33.3%)
CIE-LABlab(32.68, 40.24, -57.88)
CIE-LCHlch(32.68, 70.49, 304.80°)
OKLaboklab(43.7% 0.0479 -0.1662)
OKLCHoklch(43.7% 0.173 286.1)
XYZxyz(11.8922, 7.3923, 38.8226)
Luminance0.0739 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F38AA #93AA38
analogous
#385AAA #4F38AA #8838AA
triadic
#4F38AA #AA4F38 #38AA4F
tetradic
#4F38AA #AA385A #93AA38 #38AA88
square
#4F38AA #AA385A #93AA38 #38AA88
split-complementary
#4F38AA #AA8838 #5AAA38
monochromatic
#241A4E #3A297C #4F38AA #6E57C8 #9685D7

Accessibility & contrast

On white

8.47
#4F38AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#4F38AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F38AA
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F38AA#FFFFFF#000000##FFFFFF
##4F38AA1.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AE
Deuteranopia (green-blind)
#004AA8
Tritanopia (blue-blind)
#2A556C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4f38aa;
/* rgb */ color: rgb(79, 56, 170);
/* oklch */ color: oklch(43.7% 0.173 286.1);
Tailwind
colors: {
  custom: {
    50: '#8970c4',
    500: '#4f38aa',
    950: '#000000',
  },
}
SCSS
$custom: #4f38aa;
$custom-light: #8970c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4f38aa",
  "rgb": {
    "r": 79,
    "g": 56,
    "b": 170
  },
  "hsl": {
    "h": 252.105,
    "s": 50.442,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43696,
    "c": 0.17297,
    "h": 286.1
  },
  "luminance": 0.07393
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4F38AA

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

Preview Lab → · Contrast checker → · Palette generator →

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