#7238C0#7238C0

#7238C0 is a mid, vivid violet. Relative luminance 0.102; OKLCH L 49.1% C 0.200 H 298.1°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#7238C0
RGBrgb(114, 56, 192)
HSLhsl(266, 55%, 49%)
HSVhsv(266, 71%, 75%)
CMYKcmyk(40.6%, 70.8%, 0%, 24.7%)
CIE-LABlab(38.22, 52.71, -61.73)
CIE-LCHlch(38.22, 81.17, 310.50°)
OKLaboklab(49.08% 0.0941 -0.1763)
OKLCHoklch(49.08% 0.2 298.1)
XYZxyz(17.8656, 10.2112, 50.8887)
Luminance0.1021 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7238C0 #86C038
analogous
#3842C0 #7238C0 #B638C0
triadic
#7238C0 #C07238 #38C072
tetradic
#7238C0 #C03842 #86C038 #38C0B6
square
#7238C0 #C03842 #86C038 #38C0B6
split-complementary
#7238C0 #C0B638 #42C038
monochromatic
#3A1C61 #562A91 #7238C0 #9364D2 #B493DF

Accessibility & contrast

On white

6.90
#7238C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#7238C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7238C0
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7238C0#FFFFFF#000000##FFFFFF
##7238C01.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC4
Deuteranopia (green-blind)
#0058BD
Tritanopia (blue-blind)
#5F5A78
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7238c0;
/* rgb */ color: rgb(114, 56, 192);
/* oklch */ color: oklch(49.1% 0.200 298.1);
Tailwind
colors: {
  custom: {
    50: '#a173d4',
    500: '#7238c0',
    950: '#000000',
  },
}
SCSS
$custom: #7238c0;
$custom-light: #a173d4;
$custom-dark: #000000;
JSON
{
  "hex": "#7238c0",
  "rgb": {
    "r": 114,
    "g": 56,
    "b": 192
  },
  "hsl": {
    "h": 265.588,
    "s": 54.839,
    "l": 48.627
  },
  "oklch": {
    "l": 0.4908,
    "c": 0.19989,
    "h": 298.1
  },
  "luminance": 0.10212
}

Semantic roles & 50–950 ramp

primary
#7238C0
secondary
#AFCB89
accent
#DE4A9F
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7238C0

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

Preview Lab → · Contrast checker → · Palette generator →

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