#271273#271273

#271273 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.3% C 0.151 H 281.7°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#271273
RGBrgb(39, 18, 115)
HSLhsl(253, 73%, 26%)
HSVhsv(253, 84%, 45%)
CMYKcmyk(66.1%, 84.3%, 0%, 54.9%)
CIE-LABlab(16.01, 38.04, -51.23)
CIE-LCHlch(16.01, 63.81, 306.59°)
OKLaboklab(29.32% 0.0306 -0.1478)
OKLCHoklch(29.32% 0.151 281.7)
XYZxyz(4.1465, 2.1014, 16.4034)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271273 #5E7312
analogous
#122D73 #271273 #571273
triadic
#271273 #732712 #127327
tetradic
#271273 #73122D #5E7312 #127357
square
#271273 #73122D #5E7312 #127357
split-complementary
#271273 #735712 #2D7312
monochromatic
#09041A #150A3E #271273 #391AA8 #4B23DD

Accessibility & contrast

On white

14.78
#271273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#271273 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271273
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271273#FFFFFF#000000##FFFFFF
##2712731.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271273;
/* rgb */ color: rgb(39, 18, 115);
/* oklch */ color: oklch(29.3% 0.151 281.7);
Tailwind
colors: {
  custom: {
    50: '#6d549c',
    500: '#271273',
    950: '#000000',
  },
}
SCSS
$custom: #271273;
$custom-light: #6d549c;
$custom-dark: #000000;
JSON
{
  "hex": "#271273",
  "rgb": {
    "r": 39,
    "g": 18,
    "b": 115
  },
  "hsl": {
    "h": 252.99,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29315,
    "c": 0.15093,
    "h": 281.7
  },
  "luminance": 0.02102
}

Semantic roles & 50–950 ramp

primary
#271273
secondary
#91AA37
accent
#F038C8
background
#F7F5F9
surface
#EDE8F2
border
#C8C4CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #271273

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

Preview Lab → · Contrast checker → · Palette generator →

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