#7C8A31#7C8A31

#7C8A31 is a mid, moderate yellow. Relative luminance 0.227; OKLCH L 60.4% C 0.114 H 117.6°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#7C8A31
RGBrgb(124, 138, 49)
HSLhsl(69, 48%, 37%)
HSVhsv(69, 64%, 54%)
CMYKcmyk(10.1%, 0%, 64.5%, 45.9%)
CIE-LABlab(54.75, -18.04, 44.47)
CIE-LCHlch(54.75, 47.99, 112.09°)
OKLaboklab(60.37% -0.053 0.1015)
OKLCHoklch(60.37% 0.114 117.6)
XYZxyz(17.9554, 22.6840, 6.3377)
Luminance0.2268 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8A31 #3F318A
analogous
#8A6C31 #7C8A31 #508A31
triadic
#7C8A31 #317C8A #8A317C
tetradic
#7C8A31 #318A6C #3F318A #8A3150
square
#7C8A31 #318A6C #3F318A #8A3150
split-complementary
#7C8A31 #31508A #6C318A
monochromatic
#2B3011 #535D21 #7C8A31 #A5B741 #BBCA6B

Accessibility & contrast

On white

3.79
#7C8A31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#7C8A31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8A31
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8A31#FFFFFF#000000##000000
##7C8A311.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#938326
Deuteranopia (green-blind)
#928337
Tritanopia (blue-blind)
#838377
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7c8a31;
/* rgb */ color: rgb(124, 138, 49);
/* oklch */ color: oklch(60.4% 0.114 117.6);
Tailwind
colors: {
  custom: {
    50: '#a4ac6e',
    500: '#7c8a31',
    950: '#000000',
  },
}
SCSS
$custom: #7c8a31;
$custom-light: #a4ac6e;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8a31",
  "rgb": {
    "r": 124,
    "g": 138,
    "b": 49
  },
  "hsl": {
    "h": 69.438,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.60366,
    "c": 0.11449,
    "h": 117.6
  },
  "luminance": 0.22684
}

Semantic roles & 50–950 ramp

primary
#7C8A31
secondary
#7165B2
accent
#51D766
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #7C8A31

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

Preview Lab → · Contrast checker → · Palette generator →

#7C8A31 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva