#4F38C2#4F38C2

#4F38C2 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 45.8% C 0.203 H 282.5°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#4F38C2
RGBrgb(79, 56, 194)
HSLhsl(250, 55%, 49%)
HSVhsv(250, 71%, 76%)
CMYKcmyk(59.3%, 71.1%, 0%, 23.9%)
CIE-LABlab(34.77, 47.54, -68.68)
CIE-LCHlch(34.77, 83.53, 304.69°)
OKLaboklab(45.84% 0.0439 -0.1979)
OKLCHoklch(45.84% 0.203 282.5)
XYZxyz(14.3732, 8.3847, 51.8895)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F38C2 #ABC238
analogous
#3866C2 #4F38C2 #9438C2
triadic
#4F38C2 #C24F38 #38C24F
tetradic
#4F38C2 #C23866 #ABC238 #38C294
square
#4F38C2 #C23866 #ABC238 #38C294
split-complementary
#4F38C2 #C29438 #66C238
monochromatic
#281D63 #3C2A93 #4F38C2 #7765D2 #A194E0

Accessibility & contrast

On white

7.84
#4F38C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#4F38C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F38C2
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F38C2#FFFFFF#000000##FFFFFF
##4F38C21.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C6
Deuteranopia (green-blind)
#004DBF
Tritanopia (blue-blind)
#005D79
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4f38c2;
/* rgb */ color: rgb(79, 56, 194);
/* oklch */ color: oklch(45.8% 0.203 282.5);
Tailwind
colors: {
  custom: {
    50: '#8d71d6',
    500: '#4f38c2',
    950: '#000000',
  },
}
SCSS
$custom: #4f38c2;
$custom-light: #8d71d6;
$custom-dark: #000000;
JSON
{
  "hex": "#4f38c2",
  "rgb": {
    "r": 79,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 250,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.45835,
    "c": 0.20269,
    "h": 282.5
  },
  "luminance": 0.08386
}

Semantic roles & 50–950 ramp

primary
#4F38C2
secondary
#C1CB8A
accent
#DF49C6
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4F38C2

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

Preview Lab → · Contrast checker → · Palette generator →

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