#6F38B4#6F38B4

#6F38B4 is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.8% C 0.186 H 299.6°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#6F38B4
RGBrgb(111, 56, 180)
HSLhsl(267, 53%, 46%)
HSVhsv(267, 69%, 71%)
CMYKcmyk(38.3%, 68.9%, 0%, 29.4%)
CIE-LABlab(36.94, 49.09, -56.77)
CIE-LCHlch(36.94, 75.05, 310.85°)
OKLaboklab(47.8% 0.0919 -0.1618)
OKLCHoklch(47.8% 0.186 299.6)
XYZxyz(16.2059, 9.5030, 44.1516)
Luminance0.0950 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F38B4 #7DB438
analogous
#383FB4 #6F38B4 #AD38B4
triadic
#6F38B4 #B46F38 #38B46F
tetradic
#6F38B4 #B4383F #7DB438 #38B4AD
square
#6F38B4 #B4383F #7DB438 #38B4AD
split-complementary
#6F38B4 #B4AD38 #3FB438
monochromatic
#351B57 #522985 #6F38B4 #8E5DCD #AF8BDB

Accessibility & contrast

On white

7.24
#6F38B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#6F38B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6F38B4
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F38B4#FFFFFF#000000##FFFFFF
##6F38B41.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B8
Deuteranopia (green-blind)
#0056B1
Tritanopia (blue-blind)
#5F5572
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6f38b4;
/* rgb */ color: rgb(111, 56, 180);
/* oklch */ color: oklch(47.8% 0.186 299.6);
Tailwind
colors: {
  custom: {
    50: '#9e73cb',
    500: '#6f38b4',
    950: '#000000',
  },
}
SCSS
$custom: #6f38b4;
$custom-light: #9e73cb;
$custom-dark: #000000;
JSON
{
  "hex": "#6f38b4",
  "rgb": {
    "r": 111,
    "g": 56,
    "b": 180
  },
  "hsl": {
    "h": 266.613,
    "s": 52.542,
    "l": 46.275
  },
  "oklch": {
    "l": 0.47796,
    "c": 0.18612,
    "h": 299.6
  },
  "luminance": 0.09503
}

Semantic roles & 50–950 ramp

primary
#6F38B4
secondary
#A8C582
accent
#DC4C9C
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #6F38B4

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

Preview Lab → · Contrast checker → · Palette generator →

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