#271269#271269

#271269 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.2% C 0.139 H 284.2°. Best body text is #FFFFFF at 15.25:1 contrast (WCAG AA passes).

Color values

HEX#271269
RGBrgb(39, 18, 105)
HSLhsl(254, 71%, 24%)
HSVhsv(254, 83%, 41%)
CMYKcmyk(62.9%, 82.9%, 0%, 58.8%)
CIE-LABlab(14.86, 34.91, -46.60)
CIE-LCHlch(14.86, 58.23, 306.84°)
OKLaboklab(28.18% 0.0339 -0.1343)
OKLCHoklch(28.18% 0.139 284.2)
XYZxyz(3.6020, 1.8836, 13.5356)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271269 #546912
analogous
#122969 #271269 #531269
triadic
#271269 #692712 #126927
tetradic
#271269 #691229 #546912 #126953
square
#271269 #691229 #546912 #126953
split-complementary
#271269 #695312 #296912
monochromatic
#0A041A #140935 #271269 #3A1B9D #4E24D1

Accessibility & contrast

On white

15.25
#271269 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#271269 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271269
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271269#FFFFFF#000000##FFFFFF
##2712691.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286B
Deuteranopia (green-blind)
#002367
Tritanopia (blue-blind)
#002C3D
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #271269;
/* rgb */ color: rgb(39, 18, 105);
/* oklch */ color: oklch(28.2% 0.139 284.2);
Tailwind
colors: {
  custom: {
    50: '#6b5395',
    500: '#271269',
    950: '#000000',
  },
}
SCSS
$custom: #271269;
$custom-light: #6b5395;
$custom-dark: #000000;
JSON
{
  "hex": "#271269",
  "rgb": {
    "r": 39,
    "g": 18,
    "b": 105
  },
  "hsl": {
    "h": 254.483,
    "s": 70.732,
    "l": 24.118
  },
  "oklch": {
    "l": 0.28179,
    "c": 0.13854,
    "h": 284.2
  },
  "luminance": 0.01884
}

Semantic roles & 50–950 ramp

primary
#271269
secondary
#87A136
accent
#ED3AC2
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #271269

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

Preview Lab → · Contrast checker → · Palette generator →

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