#4F38BD#4F38BD

#4F38BD is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.4% C 0.197 H 283.2°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#4F38BD
RGBrgb(79, 56, 189)
HSLhsl(250, 54%, 48%)
HSVhsv(250, 70%, 74%)
CMYKcmyk(58.2%, 70.4%, 0%, 25.9%)
CIE-LABlab(34.32, 46.02, -66.48)
CIE-LCHlch(34.32, 80.86, 304.69°)
OKLaboklab(45.38% 0.0448 -0.1914)
OKLCHoklch(45.38% 0.197 283.2)
XYZxyz(13.8211, 8.1638, 48.9817)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F38BD #A6BD38
analogous
#3863BD #4F38BD #9138BD
triadic
#4F38BD #BD4F38 #38BD4F
tetradic
#4F38BD #BD3863 #A6BD38 #38BD91
square
#4F38BD #BD3863 #A6BD38 #38BD91
split-complementary
#4F38BD #BD9138 #63BD38
monochromatic
#281C5F #3B2A8E #4F38BD #7562D0 #9E91DE

Accessibility & contrast

On white

7.98
#4F38BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#4F38BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F38BD
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F38BD#FFFFFF#000000##FFFFFF
##4F38BD1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C1
Deuteranopia (green-blind)
#004CBA
Tritanopia (blue-blind)
#0D5B76
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4f38bd;
/* rgb */ color: rgb(79, 56, 189);
/* oklch */ color: oklch(45.4% 0.197 283.2);
Tailwind
colors: {
  custom: {
    50: '#8c71d2',
    500: '#4f38bd',
    950: '#000000',
  },
}
SCSS
$custom: #4f38bd;
$custom-light: #8c71d2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f38bd",
  "rgb": {
    "r": 79,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 250.376,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.45377,
    "c": 0.19662,
    "h": 283.2
  },
  "luminance": 0.08165
}

Semantic roles & 50–950 ramp

primary
#4F38BD
secondary
#BEC987
accent
#DE4AC4
background
#F9F6FD
surface
#F1ECFA
border
#CBC7D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4F38BD

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

Preview Lab → · Contrast checker → · Palette generator →

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