#271075#271075

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

Color values

HEX#271075
RGBrgb(39, 16, 117)
HSLhsl(254, 76%, 26%)
HSVhsv(254, 86%, 46%)
CMYKcmyk(66.7%, 86.3%, 0%, 54.1%)
CIE-LABlab(15.93, 39.58, -52.65)
CIE-LCHlch(15.93, 65.87, 306.93°)
OKLaboklab(29.33% 0.0309 -0.1519)
OKLCHoklch(29.33% 0.155 281.5)
XYZxyz(4.2319, 2.0859, 17.0058)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271075 #5E7510
analogous
#102B75 #271075 #591075
triadic
#271075 #752710 #107527
tetradic
#271075 #75102B #5E7510 #107559
square
#271075 #75102B #5E7510 #107559
split-complementary
#271075 #755910 #2B7510
monochromatic
#09041B #15093F #271075 #3917AB #4B1FE0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##271075#FFFFFF#000000##FFFFFF
##2710751.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)
#002B78
Deuteranopia (green-blind)
#002473
Tritanopia (blue-blind)
#003044
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #271075;
/* rgb */ color: rgb(39, 16, 117);
/* oklch */ color: oklch(29.3% 0.155 281.5);
Tailwind
colors: {
  custom: {
    50: '#6e539e',
    500: '#271075',
    950: '#000000',
  },
}
SCSS
$custom: #271075;
$custom-light: #6e539e;
$custom-dark: #000000;
JSON
{
  "hex": "#271075",
  "rgb": {
    "r": 39,
    "g": 16,
    "b": 117
  },
  "hsl": {
    "h": 253.663,
    "s": 75.94,
    "l": 26.078
  },
  "oklch": {
    "l": 0.2933,
    "c": 0.15503,
    "h": 281.5
  },
  "luminance": 0.02086
}

Semantic roles & 50–950 ramp

primary
#271075
secondary
#91AC35
accent
#F335C7
background
#F7F4F9
surface
#EDE7F2
border
#C8C3CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #271075

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

Preview Lab → · Contrast checker → · Palette generator →

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