#7C851D#7C851D

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

Color values

HEX#7C851D
RGBrgb(124, 133, 29)
HSLhsl(65, 64%, 32%)
HSVhsv(65, 78%, 52%)
CMYKcmyk(6.8%, 0%, 78.2%, 47.8%)
CIE-LABlab(53.11, -16.62, 50.77)
CIE-LCHlch(53.11, 53.42, 108.12°)
OKLaboklab(59.01% -0.051 0.1114)
OKLCHoklch(59.01% 0.123 114.6)
XYZxyz(16.9220, 21.1492, 4.3529)
Luminance0.2115 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C851D #261D85
analogous
#855A1D #7C851D #48851D
triadic
#7C851D #1D7C85 #851D7C
tetradic
#7C851D #1D855A #261D85 #851D48
square
#7C851D #1D855A #261D85 #851D48
split-complementary
#7C851D #1D4885 #5A1D85
monochromatic
#1E2107 #4D5312 #7C851D #ABB728 #CAD746

Accessibility & contrast

On white

4.02
#7C851D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C851D#FFFFFF#000000##000000
##7C851D1.004.025.235.23
#FFFFFF4.021.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E03
Deuteranopia (green-blind)
#8F8026
Tritanopia (blue-blind)
#857D72
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7c851d;
/* rgb */ color: rgb(124, 133, 29);
/* oklch */ color: oklch(59.0% 0.123 114.6);
Tailwind
colors: {
  custom: {
    50: '#a5a862',
    500: '#7c851d',
    950: '#000000',
  },
}
SCSS
$custom: #7c851d;
$custom-light: #a5a862;
$custom-dark: #000000;
JSON
{
  "hex": "#7c851d",
  "rgb": {
    "r": 124,
    "g": 133,
    "b": 29
  },
  "hsl": {
    "h": 65.192,
    "s": 64.198,
    "l": 31.765
  },
  "oklch": {
    "l": 0.59011,
    "c": 0.12251,
    "h": 114.6
  },
  "luminance": 0.21149
}

Semantic roles & 50–950 ramp

primary
#7C851D
secondary
#5046B8
accent
#41E74F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7C851D

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

Preview Lab → · Contrast checker → · Palette generator →

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