#6F319D#6F319D

#6F319D is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.2% C 0.170 H 307.2°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#6F319D
RGBrgb(111, 49, 157)
HSLhsl(274, 52%, 40%)
HSVhsv(274, 69%, 62%)
CMYKcmyk(29.3%, 68.8%, 0%, 38.4%)
CIE-LABlab(34.01, 46.86, -47.74)
CIE-LCHlch(34.01, 66.90, 314.47°)
OKLaboklab(45.17% 0.1026 -0.1353)
OKLCHoklch(45.17% 0.17 307.2)
XYZxyz(13.7384, 8.0106, 32.7142)
Luminance0.0801 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F319D #5F9D31
analogous
#39319D #6F319D #9D3195
triadic
#6F319D #9D6F31 #319D6F
tetradic
#6F319D #9D3931 #5F9D31 #31959D
square
#6F319D #9D3931 #5F9D31 #31959D
split-complementary
#6F319D #959D31 #319D39
monochromatic
#2D1440 #4E226E #6F319D #8F46C5 #AB75D4

Accessibility & contrast

On white

8.07
#6F319D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#6F319D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6F319D
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F319D#FFFFFF#000000##FFFFFF
##6F319D1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA0
Deuteranopia (green-blind)
#16509B
Tritanopia (blue-blind)
#674963
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6f319d;
/* rgb */ color: rgb(111, 49, 157);
/* oklch */ color: oklch(45.2% 0.170 307.2);
Tailwind
colors: {
  custom: {
    50: '#9c6ebb',
    500: '#6f319d',
    950: '#000000',
  },
}
SCSS
$custom: #6f319d;
$custom-light: #9c6ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#6f319d",
  "rgb": {
    "r": 111,
    "g": 49,
    "b": 157
  },
  "hsl": {
    "h": 274.444,
    "s": 52.427,
    "l": 40.392
  },
  "oklch": {
    "l": 0.45166,
    "c": 0.1698,
    "h": 307.2
  },
  "luminance": 0.0801
}

Semantic roles & 50–950 ramp

primary
#6F319D
secondary
#8FBC6E
accent
#DC4C89
background
#F9F6FB
surface
#F2ECF6
border
#CCC7D0
text
#0F0712
muted
#7E7A81

Preview Lab

Preview with #6F319D

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

Preview Lab → · Contrast checker → · Palette generator →

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