#6B38E7#6B38E7

#6B38E7 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.7% C 0.242 H 288.0°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#6B38E7
RGBrgb(107, 56, 231)
HSLhsl(257, 78%, 56%)
HSVhsv(257, 76%, 91%)
CMYKcmyk(53.7%, 75.8%, 0%, 9.4%)
CIE-LABlab(40.77, 61.81, -80.07)
CIE-LCHlch(40.77, 101.15, 307.67°)
OKLaboklab(51.72% 0.075 -0.2303)
OKLCHoklch(51.72% 0.242 288)
XYZxyz(21.8971, 11.7226, 76.6947)
Luminance0.1172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B38E7 #B4E738
analogous
#385DE7 #6B38E7 #C338E7
triadic
#6B38E7 #E76B38 #38E76B
tetradic
#6B38E7 #E7385D #B4E738 #38E7C3
square
#6B38E7 #E7385D #B4E738 #38E7C3
split-complementary
#6B38E7 #E7C338 #5DE738
monochromatic
#371293 #4C18CA #6B38E7 #946FEE #BCA5F4

Accessibility & contrast

On white

6.28
#6B38E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#6B38E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B38E7
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B38E7#FFFFFF#000000##FFFFFF
##6B38E71.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064EC
Deuteranopia (green-blind)
#005BE4
Tritanopia (blue-blind)
#376A8E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6b38e7;
/* rgb */ color: rgb(107, 56, 231);
/* oklch */ color: oklch(51.7% 0.242 288.0);
Tailwind
colors: {
  custom: {
    50: '#a274f0',
    500: '#6b38e7',
    950: '#000000',
  },
}
SCSS
$custom: #6b38e7;
$custom-light: #a274f0;
$custom-dark: #000000;
JSON
{
  "hex": "#6b38e7",
  "rgb": {
    "r": 107,
    "g": 56,
    "b": 231
  },
  "hsl": {
    "h": 257.486,
    "s": 78.475,
    "l": 56.275
  },
  "oklch": {
    "l": 0.51723,
    "c": 0.24224,
    "h": 288
  },
  "luminance": 0.11724
}

Semantic roles & 50–950 ramp

primary
#6B38E7
secondary
#CCE199
accent
#F533BC
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6B38E7

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

Preview Lab → · Contrast checker → · Palette generator →

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