#271966#271966

#271966 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.8% C 0.127 H 283.3°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#271966
RGBrgb(39, 25, 102)
HSLhsl(251, 61%, 25%)
HSVhsv(251, 75%, 40%)
CMYKcmyk(61.8%, 75.5%, 0%, 60%)
CIE-LABlab(15.93, 30.00, -42.87)
CIE-LCHlch(15.93, 52.33, 304.98°)
OKLaboklab(28.83% 0.0293 -0.1235)
OKLCHoklch(28.83% 0.127 283.3)
XYZxyz(3.5819, 2.0857, 12.7816)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271966 #586619
analogous
#193266 #271966 #4E1966
triadic
#271966 #662719 #196627
tetradic
#271966 #661932 #586619 #19664E
square
#271966 #661932 #586619 #19664E
split-complementary
#271966 #664E19 #326619
monochromatic
#090619 #140D35 #271966 #3A2597 #4D31C8

Accessibility & contrast

On white

14.82
#271966 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271966
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271966#FFFFFF#000000##FFFFFF
##2719661.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A68
Deuteranopia (green-blind)
#002565
Tritanopia (blue-blind)
#032E3D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #271966;
/* rgb */ color: rgb(39, 25, 102);
/* oklch */ color: oklch(28.8% 0.127 283.3);
Tailwind
colors: {
  custom: {
    50: '#6a5792',
    500: '#271966',
    950: '#000000',
  },
}
SCSS
$custom: #271966;
$custom-light: #6a5792;
$custom-dark: #000000;
JSON
{
  "hex": "#271966",
  "rgb": {
    "r": 39,
    "g": 25,
    "b": 102
  },
  "hsl": {
    "h": 250.909,
    "s": 60.63,
    "l": 24.902
  },
  "oklch": {
    "l": 0.28833,
    "c": 0.12691,
    "h": 283.3
  },
  "luminance": 0.02086
}

Semantic roles & 50–950 ramp

primary
#271966
secondary
#8B9C3F
accent
#E444C7
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #271966

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

Preview Lab → · Contrast checker → · Palette generator →

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