#7046C2#7046C2

#7046C2 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 50.9% C 0.184 H 294.5°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#7046C2
RGBrgb(112, 70, 194)
HSLhsl(260, 50%, 52%)
HSVhsv(260, 64%, 76%)
CMYKcmyk(42.3%, 63.9%, 0%, 23.9%)
CIE-LABlab(40.77, 45.64, -58.77)
CIE-LCHlch(40.77, 74.41, 307.83°)
OKLaboklab(50.9% 0.0765 -0.1677)
OKLCHoklch(50.9% 0.184 294.5)
XYZxyz(18.6073, 11.7196, 52.3102)
Luminance0.1172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7046C2 #98C246
analogous
#465AC2 #7046C2 #AE46C2
triadic
#7046C2 #C27046 #46C270
tetradic
#7046C2 #C2465A #98C246 #46C2AE
square
#7046C2 #C2465A #98C246 #46C2AE
split-complementary
#7046C2 #C2AE46 #5AC246
monochromatic
#3B236A #553299 #7046C2 #9474D1 #B7A2E0

Accessibility & contrast

On white

6.28
#7046C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#7046C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7046C2
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7046C2#FFFFFF#000000##FFFFFF
##7046C21.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C6
Deuteranopia (green-blind)
#005EBF
Tritanopia (blue-blind)
#5A637E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7046c2;
/* rgb */ color: rgb(112, 70, 194);
/* oklch */ color: oklch(50.9% 0.184 294.5);
Tailwind
colors: {
  custom: {
    50: '#9f7cd5',
    500: '#7046c2',
    950: '#000000',
  },
}
SCSS
$custom: #7046c2;
$custom-light: #9f7cd5;
$custom-dark: #000000;
JSON
{
  "hex": "#7046c2",
  "rgb": {
    "r": 112,
    "g": 70,
    "b": 194
  },
  "hsl": {
    "h": 260.323,
    "s": 50.407,
    "l": 51.765
  },
  "oklch": {
    "l": 0.50904,
    "c": 0.18437,
    "h": 294.5
  },
  "luminance": 0.1172
}

Semantic roles & 50–950 ramp

primary
#7046C2
secondary
#BBCD97
accent
#DA4EAA
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#0F0A14
muted
#7F7C83

Preview Lab

Preview with #7046C2

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

Preview Lab → · Contrast checker → · Palette generator →

#7046C2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva