#6128AB#6128AB

#6128AB is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.6% C 0.193 H 297.4°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#6128AB
RGBrgb(97, 40, 171)
HSLhsl(266, 62%, 41%)
HSVhsv(266, 77%, 67%)
CMYKcmyk(43.3%, 76.6%, 0%, 32.9%)
CIE-LABlab(31.80, 51.81, -59.84)
CIE-LCHlch(31.80, 79.15, 310.89°)
OKLaboklab(43.55% 0.0888 -0.1713)
OKLCHoklch(43.55% 0.193 297.4)
XYZxyz(13.0373, 6.9990, 39.1842)
Luminance0.0700 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6128AB #72AB28
analogous
#2831AB #6128AB #A328AB
triadic
#6128AB #AB6128 #28AB61
tetradic
#6128AB #AB2831 #72AB28 #28ABA3
square
#6128AB #AB2831 #72AB28 #28ABA3
split-complementary
#6128AB #ABA328 #31AB28
monochromatic
#291148 #451C79 #6128AB #7F3ED2 #A070DE

Accessibility & contrast

On white

8.75
#6128AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#6128AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6128AB#FFFFFF#000000##FFFFFF
##6128AB1.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6128ab;
/* rgb */ color: rgb(97, 40, 171);
/* oklch */ color: oklch(43.6% 0.193 297.4);
Tailwind
colors: {
  custom: {
    50: '#9568c5',
    500: '#6128ab',
    950: '#000000',
  },
}
SCSS
$custom: #6128ab;
$custom-light: #9568c5;
$custom-dark: #000000;
JSON
{
  "hex": "#6128ab",
  "rgb": {
    "r": 97,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 266.107,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.43553,
    "c": 0.19291,
    "h": 297.4
  },
  "luminance": 0.06999
}

Semantic roles & 50–950 ramp

primary
#6128AB
secondary
#9DC46A
accent
#E5439E
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #6128AB

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

Preview Lab → · Contrast checker → · Palette generator →

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