#6128B2#6128B2

#6128B2 is a dark, highly saturated violet. Relative luminance 0.073; OKLCH L 44.2% C 0.200 H 295.7°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#6128B2
RGBrgb(97, 40, 178)
HSLhsl(265, 63%, 43%)
HSVhsv(265, 78%, 70%)
CMYKcmyk(45.5%, 77.5%, 0%, 30.2%)
CIE-LABlab(32.42, 53.59, -63.01)
CIE-LCHlch(32.42, 82.72, 310.38°)
OKLaboklab(44.17% 0.0869 -0.1806)
OKLCHoklch(44.17% 0.2 295.7)
XYZxyz(13.7223, 7.2730, 42.7917)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6128B2 #79B228
analogous
#2834B2 #6128B2 #A628B2
triadic
#6128B2 #B26128 #28B261
tetradic
#6128B2 #B22834 #79B228 #28B2A6
square
#6128B2 #B22834 #79B228 #28B2A6
split-complementary
#6128B2 #B2A628 #34B228
monochromatic
#2B124E #461D80 #6128B2 #7F43D5 #A175E0

Accessibility & contrast

On white

8.56
#6128B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#6128B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6128B2#FFFFFF#000000##FFFFFF
##6128B21.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB6
Deuteranopia (green-blind)
#004AAF
Tritanopia (blue-blind)
#4A4E6C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #6128b2;
/* rgb */ color: rgb(97, 40, 178);
/* oklch */ color: oklch(44.2% 0.200 295.7);
Tailwind
colors: {
  custom: {
    50: '#9669ca',
    500: '#6128b2',
    950: '#000000',
  },
}
SCSS
$custom: #6128b2;
$custom-light: #9669ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6128b2",
  "rgb": {
    "r": 97,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 264.783,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.44174,
    "c": 0.20039,
    "h": 295.7
  },
  "luminance": 0.07273
}

Semantic roles & 50–950 ramp

primary
#6128B2
secondary
#A3C76F
accent
#E641A2
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #6128B2

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

Preview Lab → · Contrast checker → · Palette generator →

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