#7238A2#7238A2

#7238A2 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 46.8% C 0.167 H 306.1°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#7238A2
RGBrgb(114, 56, 162)
HSLhsl(273, 49%, 43%)
HSVhsv(273, 65%, 64%)
CMYKcmyk(29.6%, 65.4%, 0%, 36.5%)
CIE-LABlab(36.01, 45.25, -47.50)
CIE-LCHlch(36.01, 65.60, 313.61°)
OKLaboklab(46.81% 0.0981 -0.1345)
OKLCHoklch(46.81% 0.167 306.1)
XYZxyz(14.8738, 9.0145, 35.1318)
Luminance0.0901 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7238A2 #68A238
analogous
#3D38A2 #7238A2 #A2389D
triadic
#7238A2 #A27238 #38A272
tetradic
#7238A2 #A23D38 #68A238 #389DA2
square
#7238A2 #A23D38 #68A238 #389DA2
split-complementary
#7238A2 #9DA238 #38A23D
monochromatic
#321947 #522875 #7238A2 #9153C4 #AE81D3

Accessibility & contrast

On white

7.49
#7238A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#7238A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7238A2
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7238A2#FFFFFF#000000##FFFFFF
##7238A21.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A5
Deuteranopia (green-blind)
#1F55A0
Tritanopia (blue-blind)
#6A4E68
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7238a2;
/* rgb */ color: rgb(114, 56, 162);
/* oklch */ color: oklch(46.8% 0.167 306.1);
Tailwind
colors: {
  custom: {
    50: '#9e72be',
    500: '#7238a2',
    950: '#000000',
  },
}
SCSS
$custom: #7238a2;
$custom-light: #9e72be;
$custom-dark: #000000;
JSON
{
  "hex": "#7238a2",
  "rgb": {
    "r": 114,
    "g": 56,
    "b": 162
  },
  "hsl": {
    "h": 272.83,
    "s": 48.624,
    "l": 42.745
  },
  "oklch": {
    "l": 0.46805,
    "c": 0.1665,
    "h": 306.1
  },
  "luminance": 0.09014
}

Semantic roles & 50–950 ramp

primary
#7238A2
secondary
#98BD79
accent
#D8508D
background
#FAF7FB
surface
#F3EDF7
border
#CDC8D0
text
#0F0812
muted
#7F7B81

Preview Lab

Preview with #7238A2

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

Preview Lab → · Contrast checker → · Palette generator →

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