#4F34C2#4F34C2

#4F34C2 is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.3% C 0.207 H 283.1°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#4F34C2
RGBrgb(79, 52, 194)
HSLhsl(251, 58%, 48%)
HSVhsv(251, 73%, 76%)
CMYKcmyk(59.3%, 73.2%, 0%, 23.9%)
CIE-LABlab(34.01, 49.67, -69.94)
CIE-LCHlch(34.01, 85.78, 305.39°)
OKLaboklab(45.29% 0.0468 -0.2015)
OKLCHoklch(45.29% 0.207 283.1)
XYZxyz(14.1870, 8.0123, 51.8274)
Luminance0.0801 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F34C2 #A7C234
analogous
#3460C2 #4F34C2 #9634C2
triadic
#4F34C2 #C24F34 #34C24F
tetradic
#4F34C2 #C23460 #A7C234 #34C296
square
#4F34C2 #C23460 #A7C234 #34C296
split-complementary
#4F34C2 #C29634 #60C234
monochromatic
#281A61 #3B2792 #4F34C2 #755FD4 #9F8FE1

Accessibility & contrast

On white

8.07
#4F34C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#4F34C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F34C2
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F34C2#FFFFFF#000000##FFFFFF
##4F34C21.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C6
Deuteranopia (green-blind)
#004BBF
Tritanopia (blue-blind)
#005B78
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4f34c2;
/* rgb */ color: rgb(79, 52, 194);
/* oklch */ color: oklch(45.3% 0.207 283.1);
Tailwind
colors: {
  custom: {
    50: '#8d6fd6',
    500: '#4f34c2',
    950: '#000000',
  },
}
SCSS
$custom: #4f34c2;
$custom-light: #8d6fd6;
$custom-dark: #000000;
JSON
{
  "hex": "#4f34c2",
  "rgb": {
    "r": 79,
    "g": 52,
    "b": 194
  },
  "hsl": {
    "h": 251.408,
    "s": 57.724,
    "l": 48.235
  },
  "oklch": {
    "l": 0.45293,
    "c": 0.20691,
    "h": 283.1
  },
  "luminance": 0.08013
}

Semantic roles & 50–950 ramp

primary
#4F34C2
secondary
#BECC86
accent
#E147C4
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #4F34C2

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

Preview Lab → · Contrast checker → · Palette generator →

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