#7018B3#7018B3

#7018B3 is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.8% C 0.217 H 303.6°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#7018B3
RGBrgb(112, 24, 179)
HSLhsl(274, 76%, 40%)
HSVhsv(274, 87%, 70%)
CMYKcmyk(37.4%, 86.6%, 0%, 29.8%)
CIE-LABlab(32.60, 61.59, -63.24)
CIE-LCHlch(32.60, 88.28, 314.24°)
OKLaboklab(44.75% 0.1199 -0.1806)
OKLCHoklch(44.75% 0.217 303.6)
XYZxyz(15.1435, 7.3527, 43.2605)
Luminance0.0735 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7018B3 #5BB318
analogous
#2318B3 #7018B3 #B318A8
triadic
#7018B3 #B37018 #18B370
tetradic
#7018B3 #B32318 #5BB318 #18A8B3
square
#7018B3 #B32318 #5BB318 #18A8B3
split-complementary
#7018B3 #A8B318 #18B323
monochromatic
#2C0A47 #4E117D #7018B3 #9126E2 #AC5CE9

Accessibility & contrast

On white

8.50
#7018B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#7018B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7018B3
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7018B3#FFFFFF#000000##FFFFFF
##7018B31.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)
#004BB7
Deuteranopia (green-blind)
#004CB0
Tritanopia (blue-blind)
#62476A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7018b3;
/* rgb */ color: rgb(112, 24, 179);
/* oklch */ color: oklch(44.8% 0.217 303.6);
Tailwind
colors: {
  custom: {
    50: '#a064cb',
    500: '#7018b3',
    950: '#000000',
  },
}
SCSS
$custom: #7018b3;
$custom-light: #a064cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7018b3",
  "rgb": {
    "r": 112,
    "g": 24,
    "b": 179
  },
  "hsl": {
    "h": 274.065,
    "s": 76.355,
    "l": 39.804
  },
  "oklch": {
    "l": 0.44754,
    "c": 0.21682,
    "h": 303.6
  },
  "luminance": 0.07353
}

Semantic roles & 50–950 ramp

primary
#7018B3
secondary
#8CCD5A
accent
#F33587
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100613
muted
#7F7A82

Preview Lab

Preview with #7018B3

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

Preview Lab → · Contrast checker → · Palette generator →

#7018B3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva