#6128AA#6128AA

#6128AA is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.5% C 0.192 H 297.7°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#6128AA
RGBrgb(97, 40, 170)
HSLhsl(266, 62%, 41%)
HSVhsv(266, 76%, 67%)
CMYKcmyk(42.9%, 76.5%, 0%, 33.3%)
CIE-LABlab(31.72, 51.55, -59.38)
CIE-LCHlch(31.72, 78.64, 310.96°)
OKLaboklab(43.47% 0.089 -0.1699)
OKLCHoklch(43.47% 0.192 297.7)
XYZxyz(12.9424, 6.9610, 38.6841)
Luminance0.0696 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6128AA #71AA28
analogous
#2830AA #6128AA #A228AA
triadic
#6128AA #AA6128 #28AA61
tetradic
#6128AA #AA2830 #71AA28 #28AAA2
square
#6128AA #AA2830 #71AA28 #28AAA2
split-complementary
#6128AA #AAA228 #30AA28
monochromatic
#281147 #451C78 #6128AA #7F3ED2 #9F6FDD

Accessibility & contrast

On white

8.78
#6128AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#6128AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6128AA
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6128AA#FFFFFF#000000##FFFFFF
##6128AA1.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAE
Deuteranopia (green-blind)
#0049A7
Tritanopia (blue-blind)
#4E4B68
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6128aa;
/* rgb */ color: rgb(97, 40, 170);
/* oklch */ color: oklch(43.5% 0.192 297.7);
Tailwind
colors: {
  custom: {
    50: '#9568c4',
    500: '#6128aa',
    950: '#000000',
  },
}
SCSS
$custom: #6128aa;
$custom-light: #9568c4;
$custom-dark: #000000;
JSON
{
  "hex": "#6128aa",
  "rgb": {
    "r": 97,
    "g": 40,
    "b": 170
  },
  "hsl": {
    "h": 266.308,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43466,
    "c": 0.19183,
    "h": 297.7
  },
  "luminance": 0.06961
}

Semantic roles & 50–950 ramp

primary
#6128AA
secondary
#9CC46A
accent
#E5439E
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #6128AA

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

Preview Lab → · Contrast checker → · Palette generator →

#6128AA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva