#7028B2#7028B2

#7028B2 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 45.9% C 0.202 H 302.6°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#7028B2
RGBrgb(112, 40, 178)
HSLhsl(271, 63%, 43%)
HSVhsv(271, 78%, 70%)
CMYKcmyk(37.1%, 77.5%, 0%, 30.2%)
CIE-LABlab(34.35, 56.01, -59.78)
CIE-LCHlch(34.35, 81.92, 313.13°)
OKLaboklab(45.94% 0.109 -0.1706)
OKLCHoklch(45.94% 0.202 302.6)
XYZxyz(15.4748, 8.1766, 42.8738)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7028B2 #6AB228
analogous
#2B28B2 #7028B2 #B228AF
triadic
#7028B2 #B27028 #28B270
tetradic
#7028B2 #B22B28 #6AB228 #28AFB2
square
#7028B2 #B22B28 #6AB228 #28AFB2
split-complementary
#7028B2 #AFB228 #28B22B
monochromatic
#31124E #511D80 #7028B2 #8F43D5 #AD75E0

Accessibility & contrast

On white

7.97
#7028B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7028B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7028B2
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7028B2#FFFFFF#000000##FFFFFF
##7028B21.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#0050AF
Tritanopia (blue-blind)
#624C6C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7028b2;
/* rgb */ color: rgb(112, 40, 178);
/* oklch */ color: oklch(45.9% 0.202 302.6);
Tailwind
colors: {
  custom: {
    50: '#9f6aca',
    500: '#7028b2',
    950: '#000000',
  },
}
SCSS
$custom: #7028b2;
$custom-light: #9f6aca;
$custom-dark: #000000;
JSON
{
  "hex": "#7028b2",
  "rgb": {
    "r": 112,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 271.304,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.45944,
    "c": 0.20243,
    "h": 302.6
  },
  "luminance": 0.08177
}

Semantic roles & 50–950 ramp

primary
#7028B2
secondary
#99C76F
accent
#E64190
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #7028B2

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

Preview Lab → · Contrast checker → · Palette generator →

#7028B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva