#4D35A8#4D35A8

#4D35A8 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 42.9% C 0.174 H 286.0°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#4D35A8
RGBrgb(77, 53, 168)
HSLhsl(253, 52%, 43%)
HSVhsv(253, 68%, 66%)
CMYKcmyk(54.2%, 68.5%, 0%, 34.1%)
CIE-LABlab(31.69, 41.00, -58.31)
CIE-LCHlch(31.69, 71.28, 305.11°)
OKLaboklab(42.89% 0.0482 -0.1675)
OKLCHoklch(42.89% 0.174 286)
XYZxyz(11.3994, 6.9505, 37.7791)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D35A8 #90A835
analogous
#3556A8 #4D35A8 #8635A8
triadic
#4D35A8 #A84D35 #35A84D
tetradic
#4D35A8 #A83556 #90A835 #35A886
square
#4D35A8 #A83556 #90A835 #35A886
split-complementary
#4D35A8 #A88635 #56A835
monochromatic
#22184B #382679 #4D35A8 #6B52C8 #9280D7

Accessibility & contrast

On white

8.79
#4D35A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#4D35A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D35A8
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D35A8#FFFFFF#000000##FFFFFF
##4D35A81.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAC
Deuteranopia (green-blind)
#0047A6
Tritanopia (blue-blind)
#27526A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4d35a8;
/* rgb */ color: rgb(77, 53, 168);
/* oklch */ color: oklch(42.9% 0.174 286.0);
Tailwind
colors: {
  custom: {
    50: '#886ec3',
    500: '#4d35a8',
    950: '#000000',
  },
}
SCSS
$custom: #4d35a8;
$custom-light: #886ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d35a8",
  "rgb": {
    "r": 77,
    "g": 53,
    "b": 168
  },
  "hsl": {
    "h": 252.522,
    "s": 52.036,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42886,
    "c": 0.17432,
    "h": 286
  },
  "luminance": 0.06951
}

Semantic roles & 50–950 ramp

primary
#4D35A8
secondary
#B1C078
accent
#DB4CBE
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4D35A8

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

Preview Lab → · Contrast checker → · Palette generator →

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