#4725BA#4725BA

#4725BA is a dark, highly saturated violet. Relative luminance 0.062; OKLCH L 42.0% C 0.213 H 282.7°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#4725BA
RGBrgb(71, 37, 186)
HSLhsl(254, 67%, 44%)
HSVhsv(254, 80%, 73%)
CMYKcmyk(61.8%, 80.1%, 0%, 27.1%)
CIE-LABlab(29.93, 53.70, -71.97)
CIE-LCHlch(29.93, 89.79, 306.73°)
OKLaboklab(42.02% 0.0469 -0.2076)
OKLCHoklch(42.02% 0.213 282.7)
XYZxyz(12.1203, 6.2070, 47.0042)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4725BA #98BA25
analogous
#254DBA #4725BA #9125BA
triadic
#4725BA #BA4725 #25BA47
tetradic
#4725BA #BA254D #98BA25 #25BA91
square
#4725BA #BA254D #98BA25 #25BA91
split-complementary
#4725BA #BA9125 #4DBA25
monochromatic
#201154 #341B87 #4725BA #6543DA #8F76E4

Accessibility & contrast

On white

9.37
#4725BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4725BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4725BA
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4725BA#FFFFFF#000000##FFFFFF
##4725BA1.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BBE
Deuteranopia (green-blind)
#0041B7
Tritanopia (blue-blind)
#005270
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4725ba;
/* rgb */ color: rgb(71, 37, 186);
/* oklch */ color: oklch(42.0% 0.213 282.7);
Tailwind
colors: {
  custom: {
    50: '#8965d0',
    500: '#4725ba',
    950: '#000000',
  },
}
SCSS
$custom: #4725ba;
$custom-light: #8965d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4725ba",
  "rgb": {
    "r": 71,
    "g": 37,
    "b": 186
  },
  "hsl": {
    "h": 253.691,
    "s": 66.816,
    "l": 43.725
  },
  "oklch": {
    "l": 0.4202,
    "c": 0.21279,
    "h": 282.7
  },
  "luminance": 0.06208
}

Semantic roles & 50–950 ramp

primary
#4725BA
secondary
#B6CB70
accent
#EA3EC3
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #4725BA

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

Preview Lab → · Contrast checker → · Palette generator →

#4725BA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva