#7038AF#7038AF

#7038AF is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.5% C 0.181 H 301.4°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#7038AF
RGBrgb(112, 56, 175)
HSLhsl(268, 52%, 45%)
HSVhsv(268, 68%, 69%)
CMYKcmyk(36%, 68%, 0%, 31.4%)
CIE-LABlab(36.68, 48.02, -54.20)
CIE-LCHlch(36.68, 72.42, 311.54°)
OKLaboklab(47.53% 0.094 -0.1543)
OKLCHoklch(47.53% 0.181 301.4)
XYZxyz(15.8323, 9.3682, 41.5233)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7038AF #77AF38
analogous
#383CAF #7038AF #AB38AF
triadic
#7038AF #AF7038 #38AF70
tetradic
#7038AF #AF383C #77AF38 #38AFAB
square
#7038AF #AF383C #77AF38 #38AFAB
split-complementary
#7038AF #AFAB38 #3CAF38
monochromatic
#351A52 #522981 #7038AF #8F5ACA #AE88D9

Accessibility & contrast

On white

7.31
#7038AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#7038AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7038AF
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7038AF#FFFFFF#000000##FFFFFF
##7038AF1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B3
Deuteranopia (green-blind)
#0056AC
Tritanopia (blue-blind)
#63536F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7038af;
/* rgb */ color: rgb(112, 56, 175);
/* oklch */ color: oklch(47.5% 0.181 301.4);
Tailwind
colors: {
  custom: {
    50: '#9e73c8',
    500: '#7038af',
    950: '#000000',
  },
}
SCSS
$custom: #7038af;
$custom-light: #9e73c8;
$custom-dark: #000000;
JSON
{
  "hex": "#7038af",
  "rgb": {
    "r": 112,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 268.235,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.47525,
    "c": 0.18066,
    "h": 301.4
  },
  "luminance": 0.09368
}

Semantic roles & 50–950 ramp

primary
#7038AF
secondary
#A3C380
accent
#DB4D98
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #7038AF

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

Preview Lab → · Contrast checker → · Palette generator →

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