#47237F#47237F

#47237F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.1% C 0.146 H 296.2°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#47237F
RGBrgb(71, 35, 127)
HSLhsl(263, 57%, 32%)
HSVhsv(263, 72%, 50%)
CMYKcmyk(44.1%, 72.4%, 0%, 50.2%)
CIE-LABlab(23.91, 37.83, -45.79)
CIE-LCHlch(23.91, 59.40, 309.56°)
OKLaboklab(36.08% 0.0644 -0.1309)
OKLCHoklch(36.08% 0.146 296.2)
XYZxyz(7.0293, 4.0738, 20.4905)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#47237F #5B7F23
analogous
#232D7F #47237F #75237F
triadic
#47237F #7F4723 #237F47
tetradic
#47237F #7F232D #5B7F23 #237F75
square
#47237F #7F232D #5B7F23 #237F75
split-complementary
#47237F #7F7523 #2D7F23
monochromatic
#11091F #2C164F #47237F #6230AF #804ECE

Accessibility & contrast

On white

11.57
#47237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#47237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #47237F
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##47237F#FFFFFF#000000##FFFFFF
##47237F1.0011.571.8111.57
#FFFFFF11.571.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#00387D
Tritanopia (blue-blind)
#383A4E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #47237f;
/* rgb */ color: rgb(71, 35, 127);
/* oklch */ color: oklch(36.1% 0.146 296.2);
Tailwind
colors: {
  custom: {
    50: '#8061a5',
    500: '#47237f',
    950: '#000000',
  },
}
SCSS
$custom: #47237f;
$custom-light: #8061a5;
$custom-dark: #000000;
JSON
{
  "hex": "#47237f",
  "rgb": {
    "r": 71,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 263.478,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36081,
    "c": 0.14589,
    "h": 296.2
  },
  "luminance": 0.04074
}

Semantic roles & 50–950 ramp

primary
#47237F
secondary
#8AB14C
accent
#E048A4
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #47237F

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

Preview Lab → · Contrast checker → · Palette generator →

#47237F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva