#7C841F#7C841F

#7C841F is a mid, vivid yellow. Relative luminance 0.209; OKLCH L 58.8% C 0.120 H 114.1°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#7C841F
RGBrgb(124, 132, 31)
HSLhsl(65, 62%, 32%)
HSVhsv(65, 77%, 52%)
CMYKcmyk(6.1%, 0%, 76.5%, 48.2%)
CIE-LABlab(52.83, -15.99, 49.81)
CIE-LCHlch(52.83, 52.32, 107.80°)
OKLaboklab(58.78% -0.0491 0.1097)
OKLCHoklch(58.78% 0.12 114.1)
XYZxyz(16.8113, 20.8869, 4.4420)
Luminance0.2089 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C841F #271F84
analogous
#84591F #7C841F #4A841F
triadic
#7C841F #1F7C84 #841F7C
tetradic
#7C841F #1F8459 #271F84 #841F4A
square
#7C841F #1F8459 #271F84 #841F4A
split-complementary
#7C841F #1F4A84 #591F84
monochromatic
#1F2108 #4D5213 #7C841F #ABB62B #C9D449

Accessibility & contrast

On white

4.06
#7C841F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#7C841F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C841F
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C841F#FFFFFF#000000##000000
##7C841F1.004.065.185.18
#FFFFFF4.061.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D08
Deuteranopia (green-blind)
#8E7F28
Tritanopia (blue-blind)
#857C71
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7c841f;
/* rgb */ color: rgb(124, 132, 31);
/* oklch */ color: oklch(58.8% 0.120 114.1);
Tailwind
colors: {
  custom: {
    50: '#a5a763',
    500: '#7c841f',
    950: '#000000',
  },
}
SCSS
$custom: #7c841f;
$custom-light: #a5a763;
$custom-dark: #000000;
JSON
{
  "hex": "#7c841f",
  "rgb": {
    "r": 124,
    "g": 132,
    "b": 31
  },
  "hsl": {
    "h": 64.752,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.58784,
    "c": 0.12022,
    "h": 114.1
  },
  "luminance": 0.20887
}

Semantic roles & 50–950 ramp

primary
#7C841F
secondary
#5148B7
accent
#43E550
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7C841F

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

Preview Lab → · Contrast checker → · Palette generator →

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