#4D35B1#4D35B1

#4D35B1 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.7% C 0.186 H 284.6°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#4D35B1
RGBrgb(77, 53, 177)
HSLhsl(252, 54%, 45%)
HSVhsv(252, 70%, 69%)
CMYKcmyk(56.5%, 70.1%, 0%, 30.6%)
CIE-LABlab(32.48, 43.74, -62.41)
CIE-LCHlch(32.48, 76.21, 305.02°)
OKLaboklab(43.69% 0.0467 -0.1796)
OKLCHoklch(43.69% 0.186 284.6)
XYZxyz(12.2671, 7.2976, 42.3486)
Luminance0.0730 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D35B1 #99B135
analogous
#355BB1 #4D35B1 #8B35B1
triadic
#4D35B1 #B14D35 #35B14D
tetradic
#4D35B1 #B1355B #99B135 #35B18B
square
#4D35B1 #B1355B #99B135 #35B18B
split-complementary
#4D35B1 #B18B35 #5BB135
monochromatic
#241953 #392782 #4D35B1 #6D57CD #9686DB

Accessibility & contrast

On white

8.54
#4D35B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#4D35B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D35B1
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D35B1#FFFFFF#000000##FFFFFF
##4D35B11.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B5
Deuteranopia (green-blind)
#0048AF
Tritanopia (blue-blind)
#1C566F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4d35b1;
/* rgb */ color: rgb(77, 53, 177);
/* oklch */ color: oklch(43.7% 0.186 284.6);
Tailwind
colors: {
  custom: {
    50: '#896ec9',
    500: '#4d35b1',
    950: '#000000',
  },
}
SCSS
$custom: #4d35b1;
$custom-light: #896ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#4d35b1",
  "rgb": {
    "r": 77,
    "g": 53,
    "b": 177
  },
  "hsl": {
    "h": 251.613,
    "s": 53.913,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43686,
    "c": 0.18553,
    "h": 284.6
  },
  "luminance": 0.07298
}

Semantic roles & 50–950 ramp

primary
#4D35B1
secondary
#B7C47D
accent
#DD4BC1
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4D35B1

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

Preview Lab → · Contrast checker → · Palette generator →

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