#271268#271268

#271268 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.1% C 0.137 H 284.5°. Best body text is #FFFFFF at 15.30:1 contrast (WCAG AA passes).

Color values

HEX#271268
RGBrgb(39, 18, 104)
HSLhsl(255, 70%, 24%)
HSVhsv(255, 83%, 41%)
CMYKcmyk(62.5%, 82.7%, 0%, 59.2%)
CIE-LABlab(14.75, 34.60, -46.13)
CIE-LCHlch(14.75, 57.66, 306.87°)
OKLaboklab(28.07% 0.0343 -0.1329)
OKLCHoklch(28.07% 0.137 284.5)
XYZxyz(3.5509, 1.8632, 13.2665)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271268 #536812
analogous
#122868 #271268 #521268
triadic
#271268 #682712 #126827
tetradic
#271268 #681228 #536812 #126852
square
#271268 #681228 #536812 #126852
split-complementary
#271268 #685212 #286812
monochromatic
#0A051A #130934 #271268 #3B1B9C #4E24D0

Accessibility & contrast

On white

15.30
#271268 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271268
15.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271268#FFFFFF#000000##FFFFFF
##2712681.0015.301.3715.30
#FFFFFF15.301.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286A
Deuteranopia (green-blind)
#002266
Tritanopia (blue-blind)
#012B3D
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #271268;
/* rgb */ color: rgb(39, 18, 104);
/* oklch */ color: oklch(28.1% 0.137 284.5);
Tailwind
colors: {
  custom: {
    50: '#6b5394',
    500: '#271268',
    950: '#000000',
  },
}
SCSS
$custom: #271268;
$custom-light: #6b5394;
$custom-dark: #000000;
JSON
{
  "hex": "#271268",
  "rgb": {
    "r": 39,
    "g": 18,
    "b": 104
  },
  "hsl": {
    "h": 254.651,
    "s": 70.492,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28068,
    "c": 0.13728,
    "h": 284.5
  },
  "luminance": 0.01863
}

Semantic roles & 50–950 ramp

primary
#271268
secondary
#86A036
accent
#ED3BC2
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #271268

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

Preview Lab → · Contrast checker → · Palette generator →

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