#4F34C5#4F34C5

#4F34C5 is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.6% C 0.210 H 282.7°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#4F34C5
RGBrgb(79, 52, 197)
HSLhsl(251, 58%, 49%)
HSVhsv(251, 74%, 77%)
CMYKcmyk(59.9%, 73.6%, 0%, 22.7%)
CIE-LABlab(34.29, 50.56, -71.23)
CIE-LCHlch(34.29, 87.35, 305.37°)
OKLaboklab(45.58% 0.0461 -0.2053)
OKLCHoklch(45.58% 0.21 282.7)
XYZxyz(14.5274, 8.1485, 53.6198)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F34C5 #AAC534
analogous
#3462C5 #4F34C5 #9834C5
triadic
#4F34C5 #C54F34 #34C54F
tetradic
#4F34C5 #C53462 #AAC534 #34C598
square
#4F34C5 #C53462 #AAC534 #34C598
split-complementary
#4F34C5 #C59834 #62C534
monochromatic
#281A64 #3C2795 #4F34C5 #7761D5 #A091E2

Accessibility & contrast

On white

7.99
#4F34C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F34C5
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F34C5#FFFFFF#000000##FFFFFF
##4F34C51.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C9
Deuteranopia (green-blind)
#004CC2
Tritanopia (blue-blind)
#005D7A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4f34c5;
/* rgb */ color: rgb(79, 52, 197);
/* oklch */ color: oklch(45.6% 0.210 282.7);
Tailwind
colors: {
  custom: {
    50: '#8e6fd8',
    500: '#4f34c5',
    950: '#000000',
  },
}
SCSS
$custom: #4f34c5;
$custom-light: #8e6fd8;
$custom-dark: #000000;
JSON
{
  "hex": "#4f34c5",
  "rgb": {
    "r": 79,
    "g": 52,
    "b": 197
  },
  "hsl": {
    "h": 251.172,
    "s": 58.233,
    "l": 48.824
  },
  "oklch": {
    "l": 0.45578,
    "c": 0.21044,
    "h": 282.7
  },
  "luminance": 0.08149
}

Semantic roles & 50–950 ramp

primary
#4F34C5
secondary
#C0CD88
accent
#E146C5
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4F34C5

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

Preview Lab → · Contrast checker → · Palette generator →

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