#7C8151#7C8151

#7C8151 is a mid, moderate yellow. Relative luminance 0.206; OKLCH L 58.7% C 0.068 H 113.4°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#7C8151
RGBrgb(124, 129, 81)
HSLhsl(66, 23%, 41%)
HSVhsv(66, 37%, 51%)
CMYKcmyk(3.9%, 0%, 37.2%, 49.4%)
CIE-LABlab(52.49, -9.95, 25.43)
CIE-LCHlch(52.49, 27.31, 111.38°)
OKLaboklab(58.69% -0.027 0.0626)
OKLCHoklch(58.69% 0.068 113.4)
XYZxyz(17.6477, 20.5799, 10.8256)
Luminance0.2058 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8151 #565181
analogous
#816E51 #7C8151 #648151
triadic
#7C8151 #517C81 #81517C
tetradic
#7C8151 #51816E #565181 #815164
square
#7C8151 #51816E #565181 #815164
split-complementary
#7C8151 #516481 #6E5181
monochromatic
#343622 #585B39 #7C8151 #9DA36C #B6BA92

Accessibility & contrast

On white

4.10
#7C8151 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#7C8151 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8151
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8151#FFFFFF#000000##000000
##7C81511.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#887D4E
Deuteranopia (green-blind)
#877E53
Tritanopia (blue-blind)
#827C75
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7c8151;
/* rgb */ color: rgb(124, 129, 81);
/* oklch */ color: oklch(58.7% 0.068 113.4);
Tailwind
colors: {
  custom: {
    50: '#a2a582',
    500: '#7c8151',
    950: '#000000',
  },
}
SCSS
$custom: #7c8151;
$custom-light: #a2a582;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8151",
  "rgb": {
    "r": 124,
    "g": 129,
    "b": 81
  },
  "hsl": {
    "h": 66.25,
    "s": 22.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.5869,
    "c": 0.06817,
    "h": 113.4
  },
  "luminance": 0.2058
}

Semantic roles & 50–950 ramp

primary
#7C8151
secondary
#8A86A8
accent
#68BF72
background
#FAFAF8
surface
#F4F4EF
border
#CECECA
text
#0F0F0A
muted
#7F7F7C

Preview Lab

Preview with #7C8151

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

Preview Lab → · Contrast checker → · Palette generator →

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