#7238C5#7238C5

#7238C5 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.5% C 0.205 H 297.0°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#7238C5
RGBrgb(114, 56, 197)
HSLhsl(265, 56%, 50%)
HSVhsv(265, 72%, 77%)
CMYKcmyk(42.1%, 71.6%, 0%, 22.7%)
CIE-LABlab(38.61, 53.99, -64.01)
CIE-LCHlch(38.61, 83.73, 310.15°)
OKLaboklab(49.49% 0.0932 -0.183)
OKLCHoklch(49.49% 0.205 297)
XYZxyz(18.4290, 10.4366, 53.8560)
Luminance0.1044 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7238C5 #8BC538
analogous
#3845C5 #7238C5 #B938C5
triadic
#7238C5 #C57238 #38C572
tetradic
#7238C5 #C53845 #8BC538 #38C5B9
square
#7238C5 #C53845 #8BC538 #38C5B9
split-complementary
#7238C5 #C5B938 #45C538
monochromatic
#3B1D66 #562A95 #7238C5 #9367D4 #B596E1

Accessibility & contrast

On white

6.80
#7238C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#7238C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7238C5
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7238C5#FFFFFF#000000##FFFFFF
##7238C51.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC9
Deuteranopia (green-blind)
#0059C2
Tritanopia (blue-blind)
#5D5C7B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7238c5;
/* rgb */ color: rgb(114, 56, 197);
/* oklch */ color: oklch(49.5% 0.205 297.0);
Tailwind
colors: {
  custom: {
    50: '#a174d8',
    500: '#7238c5',
    950: '#000000',
  },
}
SCSS
$custom: #7238c5;
$custom-light: #a174d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7238c5",
  "rgb": {
    "r": 114,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 264.681,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.49485,
    "c": 0.20537,
    "h": 297
  },
  "luminance": 0.10437
}

Semantic roles & 50–950 ramp

primary
#7238C5
secondary
#B2CD8C
accent
#DF49A1
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100815
muted
#7F7B83

Preview Lab

Preview with #7238C5

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

Preview Lab → · Contrast checker → · Palette generator →

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