#4732AB#4732AB

#4732AB is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.2% C 0.182 H 283.2°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#4732AB
RGBrgb(71, 50, 171)
HSLhsl(250, 55%, 43%)
HSVhsv(250, 71%, 67%)
CMYKcmyk(58.5%, 70.8%, 0%, 32.9%)
CIE-LABlab(30.78, 42.65, -61.62)
CIE-LCHlch(30.78, 74.94, 304.69°)
OKLaboklab(42.18% 0.0418 -0.1774)
OKLCHoklch(42.18% 0.182 283.2)
XYZxyz(11.0876, 6.5604, 39.2022)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4732AB #96AB32
analogous
#3259AB #4732AB #8332AB
triadic
#4732AB #AB4732 #32AB47
tetradic
#4732AB #AB3259 #96AB32 #32AB83
square
#4732AB #AB3259 #96AB32 #32AB83
split-complementary
#4732AB #AB8332 #59AB32
monochromatic
#20164C #33247C #4732AB #644FCB #8E7ED9

Accessibility & contrast

On white

9.08
#4732AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#4732AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4732AB
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4732AB#FFFFFF#000000##FFFFFF
##4732AB1.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAF
Deuteranopia (green-blind)
#0044A9
Tritanopia (blue-blind)
#0D526B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4732ab;
/* rgb */ color: rgb(71, 50, 171);
/* oklch */ color: oklch(42.2% 0.182 283.2);
Tailwind
colors: {
  custom: {
    50: '#856cc5',
    500: '#4732ab',
    950: '#000000',
  },
}
SCSS
$custom: #4732ab;
$custom-light: #856cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#4732ab",
  "rgb": {
    "r": 71,
    "g": 50,
    "b": 171
  },
  "hsl": {
    "h": 250.413,
    "s": 54.751,
    "l": 43.333
  },
  "oklch": {
    "l": 0.4218,
    "c": 0.18228,
    "h": 283.2
  },
  "luminance": 0.06561
}

Semantic roles & 50–950 ramp

primary
#4732AB
secondary
#B5C277
accent
#DE4AC4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4732AB

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

Preview Lab → · Contrast checker → · Palette generator →

#4732AB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva