#4726AF#4726AF

#4726AF is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.0% C 0.199 H 284.4°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#4726AF
RGBrgb(71, 38, 175)
HSLhsl(254, 64%, 42%)
HSVhsv(254, 78%, 69%)
CMYKcmyk(59.4%, 78.3%, 0%, 31.4%)
CIE-LABlab(28.95, 50.09, -67.02)
CIE-LCHlch(28.95, 83.67, 306.77°)
OKLaboklab(41.01% 0.0496 -0.1931)
OKLCHoklch(41.01% 0.199 284.4)
XYZxyz(11.0271, 5.8203, 41.0915)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4726AF #8EAF26
analogous
#2649AF #4726AF #8C26AF
triadic
#4726AF #AF4726 #26AF47
tetradic
#4726AF #AF2649 #8EAF26 #26AF8C
square
#4726AF #AF2649 #8EAF26 #26AF8C
split-complementary
#4726AF #AF8C26 #49AF26
monochromatic
#1E104A #331B7D #4726AF #623DD5 #8B70E0

Accessibility & contrast

On white

9.70
#4726AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4726AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4726AF
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4726AF#FFFFFF#000000##FFFFFF
##4726AF1.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B3
Deuteranopia (green-blind)
#0040AD
Tritanopia (blue-blind)
#034E6A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4726af;
/* rgb */ color: rgb(71, 38, 175);
/* oklch */ color: oklch(41.0% 0.199 284.4);
Tailwind
colors: {
  custom: {
    50: '#8765c8',
    500: '#4726af',
    950: '#000000',
  },
}
SCSS
$custom: #4726af;
$custom-light: #8765c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4726af",
  "rgb": {
    "r": 71,
    "g": 38,
    "b": 175
  },
  "hsl": {
    "h": 254.453,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41005,
    "c": 0.19942,
    "h": 284.4
  },
  "luminance": 0.05821
}

Semantic roles & 50–950 ramp

primary
#4726AF
secondary
#B0C76A
accent
#E740BF
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0613
muted
#7D7A82

Preview Lab

Preview with #4726AF

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

Preview Lab → · Contrast checker → · Palette generator →

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