#7238C3#7238C3

#7238C3 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.3% C 0.203 H 297.4°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#7238C3
RGBrgb(114, 56, 195)
HSLhsl(265, 55%, 49%)
HSVhsv(265, 71%, 76%)
CMYKcmyk(41.5%, 71.3%, 0%, 23.5%)
CIE-LABlab(38.46, 53.48, -63.10)
CIE-LCHlch(38.46, 82.71, 310.28°)
OKLaboklab(49.32% 0.0936 -0.1803)
OKLCHoklch(49.32% 0.203 297.4)
XYZxyz(18.2014, 10.3456, 52.6571)
Luminance0.1035 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7238C3 #89C338
analogous
#3844C3 #7238C3 #B838C3
triadic
#7238C3 #C37238 #38C372
tetradic
#7238C3 #C33844 #89C338 #38C3B8
square
#7238C3 #C33844 #89C338 #38C3B8
split-complementary
#7238C3 #C3B838 #44C338
monochromatic
#3A1D64 #562A93 #7238C3 #9365D3 #B495E1

Accessibility & contrast

On white

6.84
#7238C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#7238C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7238C3
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7238C3#FFFFFF#000000##FFFFFF
##7238C31.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7238c3;
/* rgb */ color: rgb(114, 56, 195);
/* oklch */ color: oklch(49.3% 0.203 297.4);
Tailwind
colors: {
  custom: {
    50: '#a173d6',
    500: '#7238c3',
    950: '#000000',
  },
}
SCSS
$custom: #7238c3;
$custom-light: #a173d6;
$custom-dark: #000000;
JSON
{
  "hex": "#7238c3",
  "rgb": {
    "r": 114,
    "g": 56,
    "b": 195
  },
  "hsl": {
    "h": 265.036,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.49322,
    "c": 0.20318,
    "h": 297.4
  },
  "luminance": 0.10346
}

Semantic roles & 50–950 ramp

primary
#7238C3
secondary
#B1CC8B
accent
#DF49A0
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7238C3

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

Preview Lab → · Contrast checker → · Palette generator →

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