#4F34C7#4F34C7

#4F34C7 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 45.8% C 0.213 H 282.4°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#4F34C7
RGBrgb(79, 52, 199)
HSLhsl(251, 59%, 49%)
HSVhsv(251, 74%, 78%)
CMYKcmyk(60.3%, 73.9%, 0%, 22%)
CIE-LABlab(34.48, 51.16, -72.09)
CIE-LCHlch(34.48, 88.40, 305.36°)
OKLaboklab(45.77% 0.0457 -0.2078)
OKLCHoklch(45.77% 0.213 282.4)
XYZxyz(14.7580, 8.2407, 54.8347)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F34C7 #ACC734
analogous
#3463C7 #4F34C7 #9934C7
triadic
#4F34C7 #C74F34 #34C74F
tetradic
#4F34C7 #C73463 #ACC734 #34C799
square
#4F34C7 #C73463 #ACC734 #34C799
split-complementary
#4F34C7 #C79934 #63C734
monochromatic
#281B66 #3C2796 #4F34C7 #7762D6 #A193E3

Accessibility & contrast

On white

7.93
#4F34C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#4F34C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F34C7
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F34C7#FFFFFF#000000##FFFFFF
##4F34C71.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056CB
Deuteranopia (green-blind)
#004CC4
Tritanopia (blue-blind)
#005D7B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4f34c7;
/* rgb */ color: rgb(79, 52, 199);
/* oklch */ color: oklch(45.8% 0.213 282.4);
Tailwind
colors: {
  custom: {
    50: '#8e6fd9',
    500: '#4f34c7',
    950: '#000000',
  },
}
SCSS
$custom: #4f34c7;
$custom-light: #8e6fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#4f34c7",
  "rgb": {
    "r": 79,
    "g": 52,
    "b": 199
  },
  "hsl": {
    "h": 251.02,
    "s": 58.566,
    "l": 49.216
  },
  "oklch": {
    "l": 0.45768,
    "c": 0.21279,
    "h": 282.4
  },
  "luminance": 0.08242
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4F34C7

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

Preview Lab → · Contrast checker → · Palette generator →

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