#6B23A7#6B23A7

#6B23A7 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.9% C 0.195 H 303.8°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#6B23A7
RGBrgb(107, 35, 167)
HSLhsl(273, 65%, 40%)
HSVhsv(273, 79%, 65%)
CMYKcmyk(35.9%, 79%, 0%, 34.5%)
CIE-LABlab(32.07, 54.55, -56.94)
CIE-LCHlch(32.07, 78.85, 313.77°)
OKLaboklab(43.92% 0.1088 -0.1624)
OKLCHoklch(43.92% 0.195 303.8)
XYZxyz(13.6379, 7.1179, 37.2071)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B23A7 #5FA723
analogous
#2923A7 #6B23A7 #A723A1
triadic
#6B23A7 #A76B23 #23A76B
tetradic
#6B23A7 #A72923 #5FA723 #23A1A7
square
#6B23A7 #A72923 #5FA723 #23A1A7
split-complementary
#6B23A7 #A1A723 #23A729
monochromatic
#2A0E42 #4B1874 #6B23A7 #8B33D4 #A866DF

Accessibility & contrast

On white

8.66
#6B23A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#6B23A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B23A7
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B23A7#FFFFFF#000000##FFFFFF
##6B23A71.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAB
Deuteranopia (green-blind)
#004BA4
Tritanopia (blue-blind)
#5F4665
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6b23a7;
/* rgb */ color: rgb(107, 35, 167);
/* oklch */ color: oklch(43.9% 0.195 303.8);
Tailwind
colors: {
  custom: {
    50: '#9b67c2',
    500: '#6b23a7',
    950: '#000000',
  },
}
SCSS
$custom: #6b23a7;
$custom-light: #9b67c2;
$custom-dark: #000000;
JSON
{
  "hex": "#6b23a7",
  "rgb": {
    "r": 107,
    "g": 35,
    "b": 167
  },
  "hsl": {
    "h": 272.727,
    "s": 65.347,
    "l": 39.608
  },
  "oklch": {
    "l": 0.43924,
    "c": 0.19544,
    "h": 303.8
  },
  "luminance": 0.07118
}

Semantic roles & 50–950 ramp

primary
#6B23A7
secondary
#8EC461
accent
#E83F8C
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6B23A7

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

Preview Lab → · Contrast checker → · Palette generator →

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