#6127A2#6127A2

#6127A2 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.7% C 0.184 H 299.9°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#6127A2
RGBrgb(97, 39, 162)
HSLhsl(268, 61%, 39%)
HSVhsv(268, 76%, 64%)
CMYKcmyk(40.1%, 75.9%, 0%, 36.5%)
CIE-LABlab(30.88, 49.98, -55.92)
CIE-LCHlch(30.88, 75.00, 311.79°)
OKLaboklab(42.67% 0.0919 -0.1598)
OKLCHoklch(42.67% 0.184 299.9)
XYZxyz(12.1752, 6.6009, 34.8081)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6127A2 #68A227
analogous
#272AA2 #6127A2 #9F27A2
triadic
#6127A2 #A26127 #27A261
tetradic
#6127A2 #A2272A #68A227 #27A29F
square
#6127A2 #A2272A #68A227 #27A29F
split-complementary
#6127A2 #A29F27 #2AA227
monochromatic
#260F3F #431B71 #6127A2 #7F37CF #9E69DB

Accessibility & contrast

On white

9.05
#6127A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#6127A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6127A2
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6127A2#FFFFFF#000000##FFFFFF
##6127A21.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A5
Deuteranopia (green-blind)
#0048A0
Tritanopia (blue-blind)
#524763
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #6127a2;
/* rgb */ color: rgb(97, 39, 162);
/* oklch */ color: oklch(42.7% 0.184 299.9);
Tailwind
colors: {
  custom: {
    50: '#9467be',
    500: '#6127a2',
    950: '#000000',
  },
}
SCSS
$custom: #6127a2;
$custom-light: #9467be;
$custom-dark: #000000;
JSON
{
  "hex": "#6127a2",
  "rgb": {
    "r": 97,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 268.293,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.42667,
    "c": 0.18433,
    "h": 299.9
  },
  "luminance": 0.06601
}

Semantic roles & 50–950 ramp

primary
#6127A2
secondary
#95C164
accent
#E44398
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #6127A2

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

Preview Lab → · Contrast checker → · Palette generator →

#6127A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva