#4F34C6#4F34C6

#4F34C6 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 45.7% C 0.212 H 282.5°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#4F34C6
RGBrgb(79, 52, 198)
HSLhsl(251, 58%, 49%)
HSVhsv(251, 74%, 78%)
CMYKcmyk(60.1%, 73.7%, 0%, 22.4%)
CIE-LABlab(34.38, 50.86, -71.66)
CIE-LCHlch(34.38, 87.87, 305.37°)
OKLaboklab(45.67% 0.0459 -0.2066)
OKLCHoklch(45.67% 0.212 282.5)
XYZxyz(14.6423, 8.1945, 54.2252)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F34C6 #ABC634
analogous
#3462C6 #4F34C6 #9834C6
triadic
#4F34C6 #C64F34 #34C64F
tetradic
#4F34C6 #C63462 #ABC634 #34C698
square
#4F34C6 #C63462 #ABC634 #34C698
split-complementary
#4F34C6 #C69834 #62C634
monochromatic
#281B65 #3C2796 #4F34C6 #7762D6 #A192E2

Accessibility & contrast

On white

7.96
#4F34C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#4F34C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F34C6
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F34C6#FFFFFF#000000##FFFFFF
##4F34C61.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056CA
Deuteranopia (green-blind)
#004CC3
Tritanopia (blue-blind)
#005D7A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4f34c6;
/* rgb */ color: rgb(79, 52, 198);
/* oklch */ color: oklch(45.7% 0.212 282.5);
Tailwind
colors: {
  custom: {
    50: '#8e6fd9',
    500: '#4f34c6',
    950: '#000000',
  },
}
SCSS
$custom: #4f34c6;
$custom-light: #8e6fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#4f34c6",
  "rgb": {
    "r": 79,
    "g": 52,
    "b": 198
  },
  "hsl": {
    "h": 251.096,
    "s": 58.4,
    "l": 49.02
  },
  "oklch": {
    "l": 0.45673,
    "c": 0.21162,
    "h": 282.5
  },
  "luminance": 0.08195
}

Semantic roles & 50–950 ramp

primary
#4F34C6
secondary
#C1CD89
accent
#E246C5
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4F34C6

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

Preview Lab → · Contrast checker → · Palette generator →

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