#6823BA#6823BA

#6823BA is a mid, highly saturated violet. Relative luminance 0.077; OKLCH L 45.2% C 0.214 H 297.5°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#6823BA
RGBrgb(104, 35, 186)
HSLhsl(267, 68%, 43%)
HSVhsv(267, 81%, 73%)
CMYKcmyk(44.1%, 81.2%, 0%, 27.1%)
CIE-LABlab(33.33, 58.60, -66.24)
CIE-LCHlch(33.33, 88.44, 311.50°)
OKLaboklab(45.22% 0.0987 -0.1898)
OKLCHoklch(45.22% 0.214 297.5)
XYZxyz(15.1705, 7.6900, 47.1299)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6823BA #75BA23
analogous
#232ABA #6823BA #B323BA
triadic
#6823BA #BA6823 #23BA68
tetradic
#6823BA #BA232A #75BA23 #23BAB3
square
#6823BA #BA232A #75BA23 #23BAB3
split-complementary
#6823BA #BAB323 #2ABA23
monochromatic
#2E1053 #4B1986 #6823BA #863FDB #A773E5

Accessibility & contrast

On white

8.27
#6823BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#6823BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6823BA
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6823BA#FFFFFF#000000##FFFFFF
##6823BA1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBE
Deuteranopia (green-blind)
#004DB7
Tritanopia (blue-blind)
#524F70
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6823ba;
/* rgb */ color: rgb(104, 35, 186);
/* oklch */ color: oklch(45.2% 0.214 297.5);
Tailwind
colors: {
  custom: {
    50: '#9b68d0',
    500: '#6823ba',
    950: '#000000',
  },
}
SCSS
$custom: #6823ba;
$custom-light: #9b68d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6823ba",
  "rgb": {
    "r": 104,
    "g": 35,
    "b": 186
  },
  "hsl": {
    "h": 267.417,
    "s": 68.326,
    "l": 43.333
  },
  "oklch": {
    "l": 0.45219,
    "c": 0.2139,
    "h": 297.5
  },
  "luminance": 0.0769
}

Semantic roles & 50–950 ramp

primary
#6823BA
secondary
#A0CC6D
accent
#EB3D9B
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #6823BA

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

Preview Lab → · Contrast checker → · Palette generator →

#6823BA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva