#4726BA#4726BA

#4726BA is a dark, highly saturated violet. Relative luminance 0.063; OKLCH L 42.1% C 0.212 H 282.6°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#4726BA
RGBrgb(71, 38, 186)
HSLhsl(253, 66%, 44%)
HSVhsv(253, 80%, 73%)
CMYKcmyk(61.8%, 79.6%, 0%, 27.1%)
CIE-LABlab(30.08, 53.25, -71.71)
CIE-LCHlch(30.08, 89.32, 306.60°)
OKLaboklab(42.13% 0.0463 -0.2068)
OKLCHoklch(42.13% 0.212 282.6)
XYZxyz(12.1518, 6.2701, 47.0148)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4726BA #99BA26
analogous
#264FBA #4726BA #9126BA
triadic
#4726BA #BA4726 #26BA47
tetradic
#4726BA #BA264F #99BA26 #26BA91
square
#4726BA #BA264F #99BA26 #26BA91
split-complementary
#4726BA #BA9126 #4FBA26
monochromatic
#201154 #341C87 #4726BA #6544D9 #8F77E3

Accessibility & contrast

On white

9.32
#4726BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4726BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4726BA
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4726BA#FFFFFF#000000##FFFFFF
##4726BA1.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BBE
Deuteranopia (green-blind)
#0042B7
Tritanopia (blue-blind)
#005370
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4726ba;
/* rgb */ color: rgb(71, 38, 186);
/* oklch */ color: oklch(42.1% 0.212 282.6);
Tailwind
colors: {
  custom: {
    50: '#8966d0',
    500: '#4726ba',
    950: '#000000',
  },
}
SCSS
$custom: #4726ba;
$custom-light: #8966d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4726ba",
  "rgb": {
    "r": 71,
    "g": 38,
    "b": 186
  },
  "hsl": {
    "h": 253.378,
    "s": 66.071,
    "l": 43.922
  },
  "oklch": {
    "l": 0.42127,
    "c": 0.21196,
    "h": 282.6
  },
  "luminance": 0.06271
}

Semantic roles & 50–950 ramp

primary
#4726BA
secondary
#B7CB71
accent
#E93FC3
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #4726BA

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

Preview Lab → · Contrast checker → · Palette generator →

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