#6128A2#6128A2

#6128A2 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.8% C 0.183 H 299.8°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#6128A2
RGBrgb(97, 40, 162)
HSLhsl(268, 60%, 40%)
HSVhsv(268, 75%, 64%)
CMYKcmyk(40.1%, 75.3%, 0%, 36.5%)
CIE-LABlab(31.04, 49.53, -55.67)
CIE-LCHlch(31.04, 74.51, 311.66°)
OKLaboklab(42.78% 0.091 -0.159)
OKLCHoklch(42.78% 0.183 299.8)
XYZxyz(12.2085, 6.6675, 34.8192)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6128A2 #69A228
analogous
#282CA2 #6128A2 #9E28A2
triadic
#6128A2 #A26128 #28A261
tetradic
#6128A2 #A2282C #69A228 #28A29E
square
#6128A2 #A2282C #69A228 #28A29E
split-complementary
#6128A2 #A29E28 #2CA228
monochromatic
#261040 #441C71 #6128A2 #7F39CE #9F6ADA

Accessibility & contrast

On white

9.00
#6128A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#6128A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6128A2#FFFFFF#000000##FFFFFF
##6128A21.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6128a2;
/* rgb */ color: rgb(97, 40, 162);
/* oklch */ color: oklch(42.8% 0.183 299.8);
Tailwind
colors: {
  custom: {
    50: '#9468be',
    500: '#6128a2',
    950: '#000000',
  },
}
SCSS
$custom: #6128a2;
$custom-light: #9468be;
$custom-dark: #000000;
JSON
{
  "hex": "#6128a2",
  "rgb": {
    "r": 97,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 268.033,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42777,
    "c": 0.18324,
    "h": 299.8
  },
  "luminance": 0.06668
}

Semantic roles & 50–950 ramp

primary
#6128A2
secondary
#96C165
accent
#E44499
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #6128A2

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

Preview Lab → · Contrast checker → · Palette generator →

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