#271175#271175

#271175 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.4% C 0.154 H 281.4°. Best body text is #FFFFFF at 14.75:1 contrast (WCAG AA passes).

Color values

HEX#271175
RGBrgb(39, 17, 117)
HSLhsl(253, 75%, 26%)
HSVhsv(253, 85%, 46%)
CMYKcmyk(66.7%, 85.5%, 0%, 54.1%)
CIE-LABlab(16.09, 39.12, -52.40)
CIE-LCHlch(16.09, 65.39, 306.75°)
OKLaboklab(29.44% 0.0304 -0.1512)
OKLCHoklch(29.44% 0.154 281.4)
XYZxyz(4.2470, 2.1163, 17.0108)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271175 #5F7511
analogous
#112D75 #271175 #591175
triadic
#271175 #752711 #117527
tetradic
#271175 #75112D #5F7511 #117559
square
#271175 #75112D #5F7511 #117559
split-complementary
#271175 #755911 #2D7511
monochromatic
#09041B #150940 #271175 #3919AA #4B22DF

Accessibility & contrast

On white

14.75
#271175 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271175
14.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271175#FFFFFF#000000##FFFFFF
##2711751.0014.751.4214.75
#FFFFFF14.751.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B78
Deuteranopia (green-blind)
#002473
Tritanopia (blue-blind)
#003044
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #271175;
/* rgb */ color: rgb(39, 17, 117);
/* oklch */ color: oklch(29.4% 0.154 281.4);
Tailwind
colors: {
  custom: {
    50: '#6e549e',
    500: '#271175',
    950: '#000000',
  },
}
SCSS
$custom: #271175;
$custom-light: #6e549e;
$custom-dark: #000000;
JSON
{
  "hex": "#271175",
  "rgb": {
    "r": 39,
    "g": 17,
    "b": 117
  },
  "hsl": {
    "h": 253.2,
    "s": 74.627,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29436,
    "c": 0.15421,
    "h": 281.4
  },
  "luminance": 0.02117
}

Semantic roles & 50–950 ramp

primary
#271175
secondary
#92AC36
accent
#F137C8
background
#F7F4F9
surface
#EDE8F2
border
#C8C4CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #271175

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

Preview Lab → · Contrast checker → · Palette generator →

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