#4F34D6#4F34D6

#4F34D6 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.2% C 0.230 H 280.5°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#4F34D6
RGBrgb(79, 52, 214)
HSLhsl(250, 66%, 52%)
HSVhsv(250, 76%, 84%)
CMYKcmyk(63.1%, 75.7%, 0%, 16.1%)
CIE-LABlab(35.93, 55.57, -78.40)
CIE-LCHlch(35.93, 96.10, 305.33°)
OKLaboklab(47.23% 0.0421 -0.2263)
OKLCHoklch(47.23% 0.23 280.5)
XYZxyz(16.5862, 8.9720, 64.4630)
Luminance0.0897 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F34D6 #BBD634
analogous
#346AD6 #4F34D6 #A034D6
triadic
#4F34D6 #D64F34 #34D64F
tetradic
#4F34D6 #D6346A #BBD634 #34D6A0
square
#4F34D6 #D6346A #BBD634 #34D6A0
split-complementary
#4F34D6 #D6A034 #6AD634
monochromatic
#281877 #3922AA #4F34D6 #7B67E0 #A79AEB

Accessibility & contrast

On white

7.51
#4F34D6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#4F34D6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F34D6
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F34D6#FFFFFF#000000##FFFFFF
##4F34D61.007.512.797.51
#FFFFFF7.511.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ADB
Deuteranopia (green-blind)
#004ED3
Tritanopia (blue-blind)
#006383
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4f34d6;
/* rgb */ color: rgb(79, 52, 214);
/* oklch */ color: oklch(47.2% 0.230 280.5);
Tailwind
colors: {
  custom: {
    50: '#916fe4',
    500: '#4f34d6',
    950: '#000000',
  },
}
SCSS
$custom: #4f34d6;
$custom-light: #916fe4;
$custom-dark: #000000;
JSON
{
  "hex": "#4f34d6",
  "rgb": {
    "r": 79,
    "g": 52,
    "b": 214
  },
  "hsl": {
    "h": 250,
    "s": 66.393,
    "l": 52.157
  },
  "oklch": {
    "l": 0.47225,
    "c": 0.23015,
    "h": 280.5
  },
  "luminance": 0.08973
}

Semantic roles & 50–950 ramp

primary
#4F34D6
secondary
#CAD690
accent
#E93ECD
background
#F9F6FE
surface
#F2ECFC
border
#CCC7D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #4F34D6

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

Preview Lab → · Contrast checker → · Palette generator →

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