#271767#271767

#271767 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.131 H 283.6°. Best body text is #FFFFFF at 14.95:1 contrast (WCAG AA passes).

Color values

HEX#271767
RGBrgb(39, 23, 103)
HSLhsl(252, 63%, 25%)
HSVhsv(252, 78%, 40%)
CMYKcmyk(62.1%, 77.7%, 0%, 59.6%)
CIE-LABlab(15.61, 31.52, -44.06)
CIE-LCHlch(15.61, 54.18, 305.58°)
OKLaboklab(28.64% 0.0308 -0.1269)
OKLCHoklch(28.64% 0.131 283.6)
XYZxyz(3.5905, 2.0232, 13.0306)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271767 #576717
analogous
#172F67 #271767 #4F1767
triadic
#271767 #672717 #176727
tetradic
#271767 #67172F #576717 #17674F
square
#271767 #67172F #576717 #17674F
split-complementary
#271767 #674F17 #2F6717
monochromatic
#090619 #140C35 #271767 #3A2299 #4D2DCB

Accessibility & contrast

On white

14.95
#271767 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#271767 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271767
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271767#FFFFFF#000000##FFFFFF
##2717671.0014.951.4014.95
#FFFFFF14.951.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002969
Deuteranopia (green-blind)
#002466
Tritanopia (blue-blind)
#022D3D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #271767;
/* rgb */ color: rgb(39, 23, 103);
/* oklch */ color: oklch(28.6% 0.131 283.6);
Tailwind
colors: {
  custom: {
    50: '#6a5693',
    500: '#271767',
    950: '#000000',
  },
}
SCSS
$custom: #271767;
$custom-light: #6a5693;
$custom-dark: #000000;
JSON
{
  "hex": "#271767",
  "rgb": {
    "r": 39,
    "g": 23,
    "b": 103
  },
  "hsl": {
    "h": 252,
    "s": 63.492,
    "l": 24.706
  },
  "oklch": {
    "l": 0.28636,
    "c": 0.13062,
    "h": 283.6
  },
  "luminance": 0.02023
}

Semantic roles & 50–950 ramp

primary
#271767
secondary
#8A9D3D
accent
#E741C5
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #271767

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

Preview Lab → · Contrast checker → · Palette generator →

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