#6F22A8#6F22A8

#6F22A8 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.4% C 0.198 H 305.5°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#6F22A8
RGBrgb(111, 34, 168)
HSLhsl(274, 66%, 40%)
HSVhsv(274, 80%, 66%)
CMYKcmyk(33.9%, 79.8%, 0%, 34.1%)
CIE-LABlab(32.59, 55.82, -56.67)
CIE-LCHlch(32.59, 79.55, 314.57°)
OKLaboklab(44.43% 0.1151 -0.1614)
OKLCHoklch(44.43% 0.198 305.5)
XYZxyz(14.1939, 7.3508, 37.7093)
Luminance0.0735 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F22A8 #5BA822
analogous
#2C22A8 #6F22A8 #A8229E
triadic
#6F22A8 #A86F22 #22A86F
tetradic
#6F22A8 #A82C22 #5BA822 #229EA8
square
#6F22A8 #A82C22 #5BA822 #229EA8
split-complementary
#6F22A8 #9EA822 #22A82C
monochromatic
#2C0D42 #4D1875 #6F22A8 #9032D5 #AB65E0

Accessibility & contrast

On white

8.50
#6F22A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#6F22A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6F22A8
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F22A8#FFFFFF#000000##FFFFFF
##6F22A81.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAC
Deuteranopia (green-blind)
#004DA5
Tritanopia (blue-blind)
#644565
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #6f22a8;
/* rgb */ color: rgb(111, 34, 168);
/* oklch */ color: oklch(44.4% 0.198 305.5);
Tailwind
colors: {
  custom: {
    50: '#9e67c3',
    500: '#6f22a8',
    950: '#000000',
  },
}
SCSS
$custom: #6f22a8;
$custom-light: #9e67c3;
$custom-dark: #000000;
JSON
{
  "hex": "#6f22a8",
  "rgb": {
    "r": 111,
    "g": 34,
    "b": 168
  },
  "hsl": {
    "h": 274.478,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.44431,
    "c": 0.19826,
    "h": 305.5
  },
  "luminance": 0.07351
}

Semantic roles & 50–950 ramp

primary
#6F22A8
secondary
#8BC561
accent
#E93F87
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0613
muted
#7F7A82

Preview Lab

Preview with #6F22A8

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

Preview Lab → · Contrast checker → · Palette generator →

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