#271267#271267

#271267 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 28.0% C 0.136 H 284.7°. Best body text is #FFFFFF at 15.34:1 contrast (WCAG AA passes).

Color values

HEX#271267
RGBrgb(39, 18, 103)
HSLhsl(255, 70%, 24%)
HSVhsv(255, 83%, 40%)
CMYKcmyk(62.1%, 82.5%, 0%, 59.6%)
CIE-LABlab(14.64, 34.28, -45.65)
CIE-LCHlch(14.64, 57.09, 306.90°)
OKLaboklab(27.96% 0.0346 -0.1316)
OKLCHoklch(27.96% 0.136 284.7)
XYZxyz(3.5004, 1.8430, 13.0006)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271267 #526712
analogous
#122767 #271267 #511267
triadic
#271267 #672712 #126727
tetradic
#271267 #671227 #526712 #126751
square
#271267 #671227 #526712 #126751
split-complementary
#271267 #675112 #276712
monochromatic
#0A051A #130933 #271267 #3B1B9B #4E24CF

Accessibility & contrast

On white

15.34
#271267 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#271267 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271267
15.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271267#FFFFFF#000000##FFFFFF
##2712671.0015.341.3715.34
#FFFFFF15.341.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002769
Deuteranopia (green-blind)
#002265
Tritanopia (blue-blind)
#032B3C
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #271267;
/* rgb */ color: rgb(39, 18, 103);
/* oklch */ color: oklch(28.0% 0.136 284.7);
Tailwind
colors: {
  custom: {
    50: '#6a5393',
    500: '#271267',
    950: '#000000',
  },
}
SCSS
$custom: #271267;
$custom-light: #6a5393;
$custom-dark: #000000;
JSON
{
  "hex": "#271267",
  "rgb": {
    "r": 39,
    "g": 18,
    "b": 103
  },
  "hsl": {
    "h": 254.824,
    "s": 70.248,
    "l": 23.725
  },
  "oklch": {
    "l": 0.27957,
    "c": 0.13603,
    "h": 284.7
  },
  "luminance": 0.01843
}

Semantic roles & 50–950 ramp

primary
#271267
secondary
#859F36
accent
#ED3BC1
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #271267

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

Preview Lab → · Contrast checker → · Palette generator →

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