#4F34CC#4F34CC

#4F34CC is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.2% C 0.219 H 281.7°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#4F34CC
RGBrgb(79, 52, 204)
HSLhsl(251, 60%, 50%)
HSVhsv(251, 75%, 80%)
CMYKcmyk(61.3%, 74.5%, 0%, 20%)
CIE-LABlab(34.96, 52.63, -74.22)
CIE-LCHlch(34.96, 90.99, 305.34°)
OKLaboklab(46.25% 0.0445 -0.214)
OKLCHoklch(46.25% 0.219 281.7)
XYZxyz(15.3481, 8.4768, 57.9424)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F34CC #B1CC34
analogous
#3465CC #4F34CC #9B34CC
triadic
#4F34CC #CC4F34 #34CC4F
tetradic
#4F34CC #CC3465 #B1CC34 #34CC9B
square
#4F34CC #CC3465 #B1CC34 #34CC9B
split-complementary
#4F34CC #CC9B34 #65CC34
monochromatic
#291B6B #3C279C #4F34CC #7965D8 #A496E5

Accessibility & contrast

On white

7.79
#4F34CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#4F34CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F34CC
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F34CC#FFFFFF#000000##FFFFFF
##4F34CC1.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057D0
Deuteranopia (green-blind)
#004DC9
Tritanopia (blue-blind)
#005F7E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4f34cc;
/* rgb */ color: rgb(79, 52, 204);
/* oklch */ color: oklch(46.2% 0.219 281.7);
Tailwind
colors: {
  custom: {
    50: '#8f6fdd',
    500: '#4f34cc',
    950: '#000000',
  },
}
SCSS
$custom: #4f34cc;
$custom-light: #8f6fdd;
$custom-dark: #000000;
JSON
{
  "hex": "#4f34cc",
  "rgb": {
    "r": 79,
    "g": 52,
    "b": 204
  },
  "hsl": {
    "h": 250.658,
    "s": 59.843,
    "l": 50.196
  },
  "oklch": {
    "l": 0.46249,
    "c": 0.21863,
    "h": 281.7
  },
  "luminance": 0.08478
}

Semantic roles & 50–950 ramp

primary
#4F34CC
secondary
#C4D08C
accent
#E345C7
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4F34CC

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

Preview Lab → · Contrast checker → · Palette generator →

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