#4F34C0#4F34C0

#4F34C0 is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.1% C 0.205 H 283.4°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#4F34C0
RGBrgb(79, 52, 192)
HSLhsl(252, 57%, 48%)
HSVhsv(252, 73%, 75%)
CMYKcmyk(58.9%, 72.9%, 0%, 24.7%)
CIE-LABlab(33.82, 49.08, -69.07)
CIE-LCHlch(33.82, 84.73, 305.40°)
OKLaboklab(45.11% 0.0473 -0.199)
OKLCHoklch(45.11% 0.205 283.4)
XYZxyz(13.9639, 7.9231, 50.6524)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F34C0 #A5C034
analogous
#345FC0 #4F34C0 #9534C0
triadic
#4F34C0 #C04F34 #34C04F
tetradic
#4F34C0 #C0345F #A5C034 #34C095
square
#4F34C0 #C0345F #A5C034 #34C095
split-complementary
#4F34C0 #C09534 #5FC034
monochromatic
#271A60 #3B2790 #4F34C0 #755ED3 #9E8EE0

Accessibility & contrast

On white

8.12
#4F34C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#4F34C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F34C0
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F34C0#FFFFFF#000000##FFFFFF
##4F34C01.008.122.588.12
#FFFFFF8.121.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C4
Deuteranopia (green-blind)
#004BBD
Tritanopia (blue-blind)
#045B77
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4f34c0;
/* rgb */ color: rgb(79, 52, 192);
/* oklch */ color: oklch(45.1% 0.205 283.4);
Tailwind
colors: {
  custom: {
    50: '#8d6ed4',
    500: '#4f34c0',
    950: '#000000',
  },
}
SCSS
$custom: #4f34c0;
$custom-light: #8d6ed4;
$custom-dark: #000000;
JSON
{
  "hex": "#4f34c0",
  "rgb": {
    "r": 79,
    "g": 52,
    "b": 192
  },
  "hsl": {
    "h": 251.571,
    "s": 57.377,
    "l": 47.843
  },
  "oklch": {
    "l": 0.45105,
    "c": 0.20454,
    "h": 283.4
  },
  "luminance": 0.07924
}

Semantic roles & 50–950 ramp

primary
#4F34C0
secondary
#BDCB85
accent
#E147C3
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #4F34C0

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

Preview Lab → · Contrast checker → · Palette generator →

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