#7C851F#7C851F

#7C851F is a mid, vivid yellow. Relative luminance 0.212; OKLCH L 59.0% C 0.121 H 114.6°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#7C851F
RGBrgb(124, 133, 31)
HSLhsl(65, 62%, 32%)
HSVhsv(65, 77%, 52%)
CMYKcmyk(6.8%, 0%, 76.7%, 47.8%)
CIE-LABlab(53.12, -16.52, 50.09)
CIE-LCHlch(53.12, 52.75, 108.25°)
OKLaboklab(59.02% -0.0506 0.1103)
OKLCHoklch(59.02% 0.121 114.6)
XYZxyz(16.9475, 21.1594, 4.4875)
Luminance0.2116 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C851F #281F85
analogous
#855B1F #7C851F #49851F
triadic
#7C851F #1F7C85 #851F7C
tetradic
#7C851F #1F855B #281F85 #851F49
square
#7C851F #1F855B #281F85 #851F49
split-complementary
#7C851F #1F4985 #5B1F85
monochromatic
#1F2208 #4E5313 #7C851F #AAB72B #C8D54A

Accessibility & contrast

On white

4.01
#7C851F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#7C851F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C851F
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C851F#FFFFFF#000000##000000
##7C851F1.004.015.235.23
#FFFFFF4.011.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E08
Deuteranopia (green-blind)
#8F8028
Tritanopia (blue-blind)
#847D72
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7c851f;
/* rgb */ color: rgb(124, 133, 31);
/* oklch */ color: oklch(59.0% 0.121 114.6);
Tailwind
colors: {
  custom: {
    50: '#a5a863',
    500: '#7c851f',
    950: '#000000',
  },
}
SCSS
$custom: #7c851f;
$custom-light: #a5a863;
$custom-dark: #000000;
JSON
{
  "hex": "#7c851f",
  "rgb": {
    "r": 124,
    "g": 133,
    "b": 31
  },
  "hsl": {
    "h": 65.294,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.59023,
    "c": 0.12136,
    "h": 114.6
  },
  "luminance": 0.21159
}

Semantic roles & 50–950 ramp

primary
#7C851F
secondary
#5249B7
accent
#43E551
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7C851F

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

Preview Lab → · Contrast checker → · Palette generator →

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