#7238C7#7238C7

#7238C7 is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.6% C 0.208 H 296.5°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#7238C7
RGBrgb(114, 56, 199)
HSLhsl(264, 56%, 50%)
HSVhsv(264, 72%, 78%)
CMYKcmyk(42.7%, 71.9%, 0%, 22%)
CIE-LABlab(38.78, 54.50, -64.91)
CIE-LCHlch(38.78, 84.75, 310.02°)
OKLaboklab(49.65% 0.0928 -0.1857)
OKLCHoklch(49.65% 0.208 296.5)
XYZxyz(18.6597, 10.5289, 55.0709)
Luminance0.1053 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7238C7 #8DC738
analogous
#3845C7 #7238C7 #BA38C7
triadic
#7238C7 #C77238 #38C772
tetradic
#7238C7 #C73845 #8DC738 #38C7BA
square
#7238C7 #C73845 #8DC738 #38C7BA
split-complementary
#7238C7 #C7BA38 #45C738
monochromatic
#3B1D67 #572B97 #7238C7 #9468D4 #B698E2

Accessibility & contrast

On white

6.76
#7238C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#7238C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7238C7
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7238C7#FFFFFF#000000##FFFFFF
##7238C71.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCB
Deuteranopia (green-blind)
#0059C4
Tritanopia (blue-blind)
#5C5C7C
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7238c7;
/* rgb */ color: rgb(114, 56, 199);
/* oklch */ color: oklch(49.6% 0.208 296.5);
Tailwind
colors: {
  custom: {
    50: '#a274d9',
    500: '#7238c7',
    950: '#000000',
  },
}
SCSS
$custom: #7238c7;
$custom-light: #a274d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7238c7",
  "rgb": {
    "r": 114,
    "g": 56,
    "b": 199
  },
  "hsl": {
    "h": 264.336,
    "s": 56.078,
    "l": 50
  },
  "oklch": {
    "l": 0.49648,
    "c": 0.20757,
    "h": 296.5
  },
  "luminance": 0.10529
}

Semantic roles & 50–950 ramp

primary
#7238C7
secondary
#B3CD8D
accent
#DF48A2
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100815
muted
#7F7B83

Preview Lab

Preview with #7238C7

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

Preview Lab → · Contrast checker → · Palette generator →

#7238C7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva