#7238C4#7238C4

#7238C4 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.4% C 0.204 H 297.2°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#7238C4
RGBrgb(114, 56, 196)
HSLhsl(265, 56%, 49%)
HSVhsv(265, 71%, 77%)
CMYKcmyk(41.8%, 71.4%, 0%, 23.1%)
CIE-LABlab(38.53, 53.73, -63.55)
CIE-LCHlch(38.53, 83.22, 310.21°)
OKLaboklab(49.4% 0.0934 -0.1817)
OKLCHoklch(49.4% 0.204 297.2)
XYZxyz(18.3148, 10.3909, 53.2546)
Luminance0.1039 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7238C4 #8AC438
analogous
#3844C4 #7238C4 #B838C4
triadic
#7238C4 #C47238 #38C472
tetradic
#7238C4 #C43844 #8AC438 #38C4B8
square
#7238C4 #C43844 #8AC438 #38C4B8
split-complementary
#7238C4 #C4B838 #44C438
monochromatic
#3B1D65 #562A94 #7238C4 #9366D3 #B596E1

Accessibility & contrast

On white

6.82
#7238C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#7238C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7238C4
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7238C4#FFFFFF#000000##FFFFFF
##7238C41.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC8
Deuteranopia (green-blind)
#0059C1
Tritanopia (blue-blind)
#5D5B7A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7238c4;
/* rgb */ color: rgb(114, 56, 196);
/* oklch */ color: oklch(49.4% 0.204 297.2);
Tailwind
colors: {
  custom: {
    50: '#a174d7',
    500: '#7238c4',
    950: '#000000',
  },
}
SCSS
$custom: #7238c4;
$custom-light: #a174d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7238c4",
  "rgb": {
    "r": 114,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 264.857,
    "s": 55.556,
    "l": 49.412
  },
  "oklch": {
    "l": 0.49403,
    "c": 0.20428,
    "h": 297.2
  },
  "luminance": 0.10391
}

Semantic roles & 50–950 ramp

primary
#7238C4
secondary
#B1CC8C
accent
#DF49A1
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7238C4

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

Preview Lab → · Contrast checker → · Palette generator →

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