#7038B4#7038B4

#7038B4 is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.9% C 0.186 H 300.1°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#7038B4
RGBrgb(112, 56, 180)
HSLhsl(267, 53%, 46%)
HSVhsv(267, 69%, 71%)
CMYKcmyk(37.8%, 68.9%, 0%, 29.4%)
CIE-LABlab(37.06, 49.29, -56.56)
CIE-LCHlch(37.06, 75.02, 311.07°)
OKLaboklab(47.91% 0.0933 -0.1612)
OKLCHoklch(47.91% 0.186 300.1)
XYZxyz(16.3325, 9.5682, 44.1576)
Luminance0.0957 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7038B4 #7CB438
analogous
#383EB4 #7038B4 #AE38B4
triadic
#7038B4 #B47038 #38B470
tetradic
#7038B4 #B4383E #7CB438 #38B4AE
square
#7038B4 #B4383E #7CB438 #38B4AE
split-complementary
#7038B4 #B4AE38 #3EB438
monochromatic
#361B57 #532985 #7038B4 #8F5DCD #AF8BDB

Accessibility & contrast

On white

7.21
#7038B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7038B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7038B4
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7038B4#FFFFFF#000000##FFFFFF
##7038B41.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B8
Deuteranopia (green-blind)
#0056B1
Tritanopia (blue-blind)
#615572
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7038b4;
/* rgb */ color: rgb(112, 56, 180);
/* oklch */ color: oklch(47.9% 0.186 300.1);
Tailwind
colors: {
  custom: {
    50: '#9e73cb',
    500: '#7038b4',
    950: '#000000',
  },
}
SCSS
$custom: #7038b4;
$custom-light: #9e73cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7038b4",
  "rgb": {
    "r": 112,
    "g": 56,
    "b": 180
  },
  "hsl": {
    "h": 267.097,
    "s": 52.542,
    "l": 46.275
  },
  "oklch": {
    "l": 0.47909,
    "c": 0.18628,
    "h": 300.1
  },
  "luminance": 0.09568
}

Semantic roles & 50–950 ramp

primary
#7038B4
secondary
#A7C582
accent
#DC4C9B
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #7038B4

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

Preview Lab → · Contrast checker → · Palette generator →

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