#7038D4#7038D4

#7038D4 is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.5% C 0.222 H 293.1°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#7038D4
RGBrgb(112, 56, 212)
HSLhsl(262, 64%, 53%)
HSVhsv(262, 74%, 83%)
CMYKcmyk(47.2%, 73.6%, 0%, 16.9%)
CIE-LABlab(39.62, 57.52, -71.06)
CIE-LCHlch(39.62, 91.42, 308.99°)
OKLaboklab(50.53% 0.087 -0.2038)
OKLCHoklch(50.53% 0.222 293.1)
XYZxyz(19.9766, 11.0259, 63.3503)
Luminance0.1103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7038D4 #9CD438
analogous
#384ED4 #7038D4 #BE38D4
triadic
#7038D4 #D47038 #38D470
tetradic
#7038D4 #D4384E #9CD438 #38D4BE
square
#7038D4 #D4384E #9CD438 #38D4BE
split-complementary
#7038D4 #D4BE38 #4ED438
monochromatic
#3C1A78 #5525AA #7038D4 #946ADF #B89DEA

Accessibility & contrast

On white

6.55
#7038D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#7038D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7038D4
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7038D4#FFFFFF#000000##FFFFFF
##7038D41.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD8
Deuteranopia (green-blind)
#005AD1
Tritanopia (blue-blind)
#516283
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7038d4;
/* rgb */ color: rgb(112, 56, 212);
/* oklch */ color: oklch(50.5% 0.222 293.1);
Tailwind
colors: {
  custom: {
    50: '#a274e2',
    500: '#7038d4',
    950: '#000000',
  },
}
SCSS
$custom: #7038d4;
$custom-light: #a274e2;
$custom-dark: #000000;
JSON
{
  "hex": "#7038d4",
  "rgb": {
    "r": 112,
    "g": 56,
    "b": 212
  },
  "hsl": {
    "h": 261.538,
    "s": 64.463,
    "l": 52.549
  },
  "oklch": {
    "l": 0.50529,
    "c": 0.22161,
    "h": 293.1
  },
  "luminance": 0.11027
}

Semantic roles & 50–950 ramp

primary
#7038D4
secondary
#BDD692
accent
#E740AB
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #7038D4

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

Preview Lab → · Contrast checker → · Palette generator →

#7038D4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva