#271472#271472

#271472 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.4% C 0.148 H 281.6°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#271472
RGBrgb(39, 20, 114)
HSLhsl(252, 70%, 26%)
HSVhsv(252, 82%, 45%)
CMYKcmyk(65.8%, 82.5%, 0%, 55.3%)
CIE-LABlab(16.24, 36.73, -50.21)
CIE-LCHlch(16.24, 62.21, 306.19°)
OKLaboklab(29.44% 0.0297 -0.1449)
OKLCHoklch(29.44% 0.148 281.6)
XYZxyz(4.1232, 2.1462, 16.1133)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271472 #5F7214
analogous
#143072 #271472 #561472
triadic
#271472 #722714 #147227
tetradic
#271472 #721430 #5F7214 #147256
square
#271472 #721430 #5F7214 #147256
split-complementary
#271472 #725614 #307214
monochromatic
#09051A #150B3E #271472 #391DA6 #4B27D9

Accessibility & contrast

On white

14.69
#271472 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#271472 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271472
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271472#FFFFFF#000000##FFFFFF
##2714721.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B75
Deuteranopia (green-blind)
#002570
Tritanopia (blue-blind)
#003043
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #271472;
/* rgb */ color: rgb(39, 20, 114);
/* oklch */ color: oklch(29.4% 0.148 281.6);
Tailwind
colors: {
  custom: {
    50: '#6d559c',
    500: '#271472',
    950: '#000000',
  },
}
SCSS
$custom: #271472;
$custom-light: #6d559c;
$custom-dark: #000000;
JSON
{
  "hex": "#271472",
  "rgb": {
    "r": 39,
    "g": 20,
    "b": 114
  },
  "hsl": {
    "h": 252.128,
    "s": 70.149,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29438,
    "c": 0.14788,
    "h": 281.6
  },
  "luminance": 0.02147
}

Semantic roles & 50–950 ramp

primary
#271472
secondary
#92A839
accent
#ED3BC9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #271472

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

Preview Lab → · Contrast checker → · Palette generator →

#271472 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva