#7238BC#7238BC

#7238BC is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.8% C 0.195 H 299.0°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#7238BC
RGBrgb(114, 56, 188)
HSLhsl(266, 54%, 48%)
HSVhsv(266, 70%, 74%)
CMYKcmyk(39.4%, 70.2%, 0%, 26.3%)
CIE-LABlab(37.91, 51.70, -59.89)
CIE-LCHlch(37.91, 79.12, 310.80°)
OKLaboklab(48.76% 0.0949 -0.1709)
OKLCHoklch(48.76% 0.195 299)
XYZxyz(17.4284, 10.0364, 48.5862)
Luminance0.1004 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7238BC #82BC38
analogous
#3840BC #7238BC #B438BC
triadic
#7238BC #BC7238 #38BC72
tetradic
#7238BC #BC3840 #82BC38 #38BCB4
square
#7238BC #BC3840 #82BC38 #38BCB4
split-complementary
#7238BC #BCB438 #40BC38
monochromatic
#391C5E #552A8D #7238BC #9261D0 #B290DE

Accessibility & contrast

On white

6.98
#7238BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#7238BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7238BC
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7238BC#FFFFFF#000000##FFFFFF
##7238BC1.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C0
Deuteranopia (green-blind)
#0058B9
Tritanopia (blue-blind)
#615876
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7238bc;
/* rgb */ color: rgb(114, 56, 188);
/* oklch */ color: oklch(48.8% 0.195 299.0);
Tailwind
colors: {
  custom: {
    50: '#a173d1',
    500: '#7238bc',
    950: '#000000',
  },
}
SCSS
$custom: #7238bc;
$custom-light: #a173d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7238bc",
  "rgb": {
    "r": 114,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 266.364,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.48762,
    "c": 0.19547,
    "h": 299
  },
  "luminance": 0.10037
}

Semantic roles & 50–950 ramp

primary
#7238BC
secondary
#ACC987
accent
#DD4A9D
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0814
muted
#7F7B83

Preview Lab

Preview with #7238BC

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

Preview Lab → · Contrast checker → · Palette generator →

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