#7238BA#7238BA

#7238BA is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.6% C 0.193 H 299.5°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#7238BA
RGBrgb(114, 56, 186)
HSLhsl(267, 54%, 47%)
HSVhsv(267, 70%, 73%)
CMYKcmyk(38.7%, 69.9%, 0%, 27.1%)
CIE-LABlab(37.75, 51.19, -58.96)
CIE-LCHlch(37.75, 78.09, 310.97°)
OKLaboklab(48.6% 0.0952 -0.1682)
OKLCHoklch(48.6% 0.193 299.5)
XYZxyz(17.2143, 9.9507, 47.4586)
Luminance0.0995 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7238BA #80BA38
analogous
#383FBA #7238BA #B338BA
triadic
#7238BA #BA7238 #38BA72
tetradic
#7238BA #BA383F #80BA38 #38BAB3
square
#7238BA #BA383F #80BA38 #38BAB3
split-complementary
#7238BA #BAB338 #3FBA38
monochromatic
#381C5C #552A8B #7238BA #9260CF #B28FDD

Accessibility & contrast

On white

7.02
#7238BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#7238BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7238BA
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7238BA#FFFFFF#000000##FFFFFF
##7238BA1.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BE
Deuteranopia (green-blind)
#0058B7
Tritanopia (blue-blind)
#615775
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7238ba;
/* rgb */ color: rgb(114, 56, 186);
/* oklch */ color: oklch(48.6% 0.193 299.5);
Tailwind
colors: {
  custom: {
    50: '#a073d0',
    500: '#7238ba',
    950: '#000000',
  },
}
SCSS
$custom: #7238ba;
$custom-light: #a073d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7238ba",
  "rgb": {
    "r": 114,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 266.769,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.48604,
    "c": 0.19327,
    "h": 299.5
  },
  "luminance": 0.09951
}

Semantic roles & 50–950 ramp

primary
#7238BA
secondary
#AAC886
accent
#DD4B9C
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #7238BA

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

Preview Lab → · Contrast checker → · Palette generator →

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