#6B126F#6B126F

#6B126F is a dark, vivid purple. Relative luminance 0.047; OKLCH L 38.2% C 0.161 H 326.2°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#6B126F
RGBrgb(107, 18, 111)
HSLhsl(297, 72%, 25%)
HSVhsv(297, 84%, 44%)
CMYKcmyk(3.6%, 83.8%, 0%, 56.5%)
CIE-LABlab(25.88, 48.62, -32.13)
CIE-LCHlch(25.88, 58.28, 326.54°)
OKLaboklab(38.25% 0.1335 -0.0895)
OKLCHoklch(38.25% 0.161 326.2)
XYZxyz(9.1488, 4.7068, 15.4625)
Luminance0.0471 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B126F #166F12
analogous
#3C126F #6B126F #6F1245
triadic
#6B126F #6F6B12 #126F6B
tetradic
#6B126F #6F3C12 #166F12 #12456F
square
#6B126F #6F3C12 #166F12 #12456F
split-complementary
#6B126F #456F12 #126F3C
monochromatic
#19041A #38093A #6B126F #9E1BA4 #D123D8

Accessibility & contrast

On white

10.82
#6B126F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#6B126F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B126F
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B126F#FFFFFF#000000##FFFFFF
##6B126F1.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003671
Deuteranopia (green-blind)
#2A416D
Tritanopia (blue-blind)
#6E2441
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #6b126f;
/* rgb */ color: rgb(107, 18, 111);
/* oklch */ color: oklch(38.2% 0.161 326.2);
Tailwind
colors: {
  custom: {
    50: '#995d99',
    500: '#6b126f',
    950: '#000000',
  },
}
SCSS
$custom: #6b126f;
$custom-light: #995d99;
$custom-dark: #000000;
JSON
{
  "hex": "#6b126f",
  "rgb": {
    "r": 107,
    "g": 18,
    "b": 111
  },
  "hsl": {
    "h": 297.419,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.38246,
    "c": 0.16073,
    "h": 326.2
  },
  "luminance": 0.04706
}

Semantic roles & 50–950 ramp

primary
#6B126F
secondary
#3BA637
accent
#EF3941
background
#F9F5F9
surface
#F2E9F2
border
#CCC5CC
text
#0E050E
muted
#7E797E

Preview Lab

Preview with #6B126F

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

Preview Lab → · Contrast checker → · Palette generator →

#6B126F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva