#271258#271258

#271258 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.117 H 289.6°. Best body text is #FFFFFF at 15.98:1 contrast (WCAG AA passes).

Color values

HEX#271258
RGBrgb(39, 18, 88)
HSLhsl(258, 66%, 21%)
HSVhsv(258, 80%, 35%)
CMYKcmyk(55.7%, 79.5%, 0%, 65.5%)
CIE-LABlab(13.04, 29.52, -38.28)
CIE-LCHlch(13.04, 48.34, 307.64°)
OKLaboklab(26.35% 0.0391 -0.11)
OKLCHoklch(26.35% 0.117 289.6)
XYZxyz(2.8139, 1.5684, 9.3851)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271258 #435812
analogous
#122058 #271258 #4A1258
triadic
#271258 #582712 #125827
tetradic
#271258 #581220 #435812 #12584A
square
#271258 #581220 #435812 #12584A
split-complementary
#271258 #584A12 #205812
monochromatic
#0B0519 #100825 #271258 #3E1C8B #5427BE

Accessibility & contrast

On white

15.98
#271258 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271258
15.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271258#FFFFFF#000000##FFFFFF
##2712581.0015.981.3115.98
#FFFFFF15.981.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235A
Deuteranopia (green-blind)
#002057
Tritanopia (blue-blind)
#152534
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #271258;
/* rgb */ color: rgb(39, 18, 88);
/* oklch */ color: oklch(26.3% 0.117 289.6);
Tailwind
colors: {
  custom: {
    50: '#675288',
    500: '#271258',
    950: '#000000',
  },
}
SCSS
$custom: #271258;
$custom-light: #675288;
$custom-dark: #000000;
JSON
{
  "hex": "#271258",
  "rgb": {
    "r": 39,
    "g": 18,
    "b": 88
  },
  "hsl": {
    "h": 258,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.26347,
    "c": 0.11674,
    "h": 289.6
  },
  "luminance": 0.01569
}

Semantic roles & 50–950 ramp

primary
#271258
secondary
#759135
accent
#E93FB6
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020B
muted
#7A787C

Preview Lab

Preview with #271258

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

Preview Lab → · Contrast checker → · Palette generator →

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