#4F35B5#4F35B5

#4F35B5 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.2% C 0.190 H 284.8°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#4F35B5
RGBrgb(79, 53, 181)
HSLhsl(252, 55%, 46%)
HSVhsv(252, 71%, 71%)
CMYKcmyk(56.4%, 70.7%, 0%, 29%)
CIE-LABlab(33.01, 45.26, -63.90)
CIE-LCHlch(33.01, 78.30, 305.31°)
OKLaboklab(44.22% 0.0488 -0.1839)
OKLCHoklch(44.22% 0.19 284.8)
XYZxyz(12.8355, 7.5439, 44.4869)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F35B5 #9BB535
analogous
#355BB5 #4F35B5 #8F35B5
triadic
#4F35B5 #B54F35 #35B54F
tetradic
#4F35B5 #B5355B #9BB535 #35B58F
square
#4F35B5 #B5355B #9BB535 #35B58F
split-complementary
#4F35B5 #B58F35 #5BB535
monochromatic
#261956 #3A2786 #4F35B5 #7159CE #9988DC

Accessibility & contrast

On white

8.37
#4F35B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#4F35B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F35B5
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F35B5#FFFFFF#000000##FFFFFF
##4F35B51.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B9
Deuteranopia (green-blind)
#004AB3
Tritanopia (blue-blind)
#1E5771
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4f35b5;
/* rgb */ color: rgb(79, 53, 181);
/* oklch */ color: oklch(44.2% 0.190 284.8);
Tailwind
colors: {
  custom: {
    50: '#8b6fcc',
    500: '#4f35b5',
    950: '#000000',
  },
}
SCSS
$custom: #4f35b5;
$custom-light: #8b6fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#4f35b5",
  "rgb": {
    "r": 79,
    "g": 53,
    "b": 181
  },
  "hsl": {
    "h": 252.188,
    "s": 54.701,
    "l": 45.882
  },
  "oklch": {
    "l": 0.44225,
    "c": 0.19022,
    "h": 284.8
  },
  "luminance": 0.07545
}

Semantic roles & 50–950 ramp

primary
#4F35B5
secondary
#B8C680
accent
#DE4AC0
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4F35B5

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

Preview Lab → · Contrast checker → · Palette generator →

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