#6B23A8#6B23A8

#6B23A8 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 44.0% C 0.196 H 303.5°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#6B23A8
RGBrgb(107, 35, 168)
HSLhsl(272, 66%, 40%)
HSVhsv(272, 79%, 66%)
CMYKcmyk(36.3%, 79.2%, 0%, 34.1%)
CIE-LABlab(32.16, 54.78, -57.41)
CIE-LCHlch(32.16, 79.35, 313.66°)
OKLaboklab(44.01% 0.1085 -0.1637)
OKLCHoklch(44.01% 0.196 303.5)
XYZxyz(13.7307, 7.1550, 37.6959)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B23A8 #60A823
analogous
#2823A8 #6B23A8 #A823A3
triadic
#6B23A8 #A86B23 #23A86B
tetradic
#6B23A8 #A82823 #60A823 #23A3A8
square
#6B23A8 #A82823 #60A823 #23A3A8
split-complementary
#6B23A8 #A3A823 #23A828
monochromatic
#2A0E43 #4B1875 #6B23A8 #8B34D5 #A866DF

Accessibility & contrast

On white

8.64
#6B23A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#6B23A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B23A8
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B23A8#FFFFFF#000000##FFFFFF
##6B23A81.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAC
Deuteranopia (green-blind)
#004BA5
Tritanopia (blue-blind)
#5F4665
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #6b23a8;
/* rgb */ color: rgb(107, 35, 168);
/* oklch */ color: oklch(44.0% 0.196 303.5);
Tailwind
colors: {
  custom: {
    50: '#9b67c3',
    500: '#6b23a8',
    950: '#000000',
  },
}
SCSS
$custom: #6b23a8;
$custom-light: #9b67c3;
$custom-dark: #000000;
JSON
{
  "hex": "#6b23a8",
  "rgb": {
    "r": 107,
    "g": 35,
    "b": 168
  },
  "hsl": {
    "h": 272.481,
    "s": 65.517,
    "l": 39.804
  },
  "oklch": {
    "l": 0.44008,
    "c": 0.19644,
    "h": 303.5
  },
  "luminance": 0.07155
}

Semantic roles & 50–950 ramp

primary
#6B23A8
secondary
#8FC562
accent
#E83F8D
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0613
muted
#7F7A82

Preview Lab

Preview with #6B23A8

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

Preview Lab → · Contrast checker → · Palette generator →

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