#7040AF#7040AF

#7040AF is a mid, vivid violet. Relative luminance 0.102; OKLCH L 48.6% C 0.170 H 300.0°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#7040AF
RGBrgb(112, 64, 175)
HSLhsl(266, 46%, 47%)
HSVhsv(266, 63%, 69%)
CMYKcmyk(36%, 63.4%, 0%, 31.4%)
CIE-LABlab(38.21, 43.85, -51.73)
CIE-LCHlch(38.21, 67.82, 310.29°)
OKLaboklab(48.63% 0.0849 -0.147)
OKLCHoklch(48.63% 0.17 300)
XYZxyz(16.2515, 10.2065, 41.6630)
Luminance0.1021 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7040AF #7FAF40
analogous
#4047AF #7040AF #A840AF
triadic
#7040AF #AF7040 #40AF70
tetradic
#7040AF #AF4047 #7FAF40 #40AFA8
square
#7040AF #AF4047 #7FAF40 #40AFA8
split-complementary
#7040AF #AFA840 #47AF40
monochromatic
#371F55 #533082 #7040AF #9065C7 #B092D7

Accessibility & contrast

On white

6.90
#7040AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#7040AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7040AF
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7040AF#FFFFFF#000000##FFFFFF
##7040AF1.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB2
Deuteranopia (green-blind)
#1259AD
Tritanopia (blue-blind)
#625871
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7040af;
/* rgb */ color: rgb(112, 64, 175);
/* oklch */ color: oklch(48.6% 0.170 300.0);
Tailwind
colors: {
  custom: {
    50: '#9e77c8',
    500: '#7040af',
    950: '#000000',
  },
}
SCSS
$custom: #7040af;
$custom-light: #9e77c8;
$custom-dark: #000000;
JSON
{
  "hex": "#7040af",
  "rgb": {
    "r": 112,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 265.946,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.48626,
    "c": 0.1698,
    "h": 300
  },
  "luminance": 0.10207
}

Semantic roles & 50–950 ramp

primary
#7040AF
secondary
#A9C388
accent
#D6529D
background
#FAF7FC
surface
#F3EDF8
border
#CDC8D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #7040AF

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

Preview Lab → · Contrast checker → · Palette generator →

#7040AF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva