#7C8131#7C8131

#7C8131 is a mid, moderate yellow. Relative luminance 0.202; OKLCH L 58.2% C 0.103 H 112.5°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#7C8131
RGBrgb(124, 129, 49)
HSLhsl(64, 45%, 35%)
HSVhsv(64, 62%, 51%)
CMYKcmyk(3.9%, 0%, 62%, 49.4%)
CIE-LABlab(52.07, -13.27, 41.58)
CIE-LCHlch(52.07, 43.64, 107.70°)
OKLaboklab(58.22% -0.0396 0.0954)
OKLCHoklch(58.22% 0.103 112.5)
XYZxyz(16.7172, 20.2077, 5.9250)
Luminance0.2021 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8131 #363181
analogous
#815E31 #7C8131 #548131
triadic
#7C8131 #317C81 #81317C
tetradic
#7C8131 #31815E #363181 #813154
square
#7C8131 #31815E #363181 #813154
split-complementary
#7C8131 #315481 #5E3181
monochromatic
#27280F #515520 #7C8131 #A7AD42 #BFC567

Accessibility & contrast

On white

4.17
#7C8131 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#7C8131 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8131
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8131#FFFFFF#000000##000000
##7C81311.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7B28
Deuteranopia (green-blind)
#8A7D36
Tritanopia (blue-blind)
#847A70
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7c8131;
/* rgb */ color: rgb(124, 129, 49);
/* oklch */ color: oklch(58.2% 0.103 112.5);
Tailwind
colors: {
  custom: {
    50: '#a4a56d',
    500: '#7c8131',
    950: '#000000',
  },
}
SCSS
$custom: #7c8131;
$custom-light: #a4a56d;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8131",
  "rgb": {
    "r": 124,
    "g": 129,
    "b": 49
  },
  "hsl": {
    "h": 63.75,
    "s": 44.944,
    "l": 34.902
  },
  "oklch": {
    "l": 0.58224,
    "c": 0.10326,
    "h": 112.5
  },
  "luminance": 0.20207
}

Semantic roles & 50–950 ramp

primary
#7C8131
secondary
#6661AD
accent
#53D55B
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #7C8131

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

Preview Lab → · Contrast checker → · Palette generator →

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