#271257#271257

#271257 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.2% C 0.115 H 290.0°. Best body text is #FFFFFF at 16.03:1 contrast (WCAG AA passes).

Color values

HEX#271257
RGBrgb(39, 18, 87)
HSLhsl(258, 66%, 21%)
HSVhsv(258, 79%, 34%)
CMYKcmyk(55.2%, 79.3%, 0%, 65.9%)
CIE-LABlab(12.93, 29.20, -37.77)
CIE-LCHlch(12.93, 47.75, 307.71°)
OKLaboklab(26.24% 0.0394 -0.1085)
OKLCHoklch(26.24% 0.115 290)
XYZxyz(2.7728, 1.5519, 9.1684)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271257 #425712
analogous
#121F57 #271257 #491257
triadic
#271257 #572712 #125727
tetradic
#271257 #57121F #425712 #125749
square
#271257 #57121F #425712 #125749
split-complementary
#271257 #574912 #1F5712
monochromatic
#0B0519 #100824 #271257 #3E1C8A #5427BC

Accessibility & contrast

On white

16.03
#271257 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#271257 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271257
16.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271257#FFFFFF#000000##FFFFFF
##2712571.0016.031.3116.03
#FFFFFF16.031.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002359
Deuteranopia (green-blind)
#002056
Tritanopia (blue-blind)
#162533
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #271257;
/* rgb */ color: rgb(39, 18, 87);
/* oklch */ color: oklch(26.2% 0.115 290.0);
Tailwind
colors: {
  custom: {
    50: '#675287',
    500: '#271257',
    950: '#000000',
  },
}
SCSS
$custom: #271257;
$custom-light: #675287;
$custom-dark: #000000;
JSON
{
  "hex": "#271257",
  "rgb": {
    "r": 39,
    "g": 18,
    "b": 87
  },
  "hsl": {
    "h": 258.261,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.26243,
    "c": 0.11544,
    "h": 290
  },
  "luminance": 0.01552
}

Semantic roles & 50–950 ramp

primary
#271257
secondary
#749035
accent
#E93FB5
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #271257

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

Preview Lab → · Contrast checker → · Palette generator →

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