#7F841C#7F841C

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

Color values

HEX#7F841C
RGBrgb(127, 132, 28)
HSLhsl(63, 65%, 31%)
HSVhsv(63, 79%, 52%)
CMYKcmyk(3.8%, 0%, 78.8%, 48.2%)
CIE-LABlab(53.06, -14.77, 51.15)
CIE-LCHlch(53.06, 53.24, 106.11°)
OKLaboklab(59.03% -0.0461 0.1119)
OKLCHoklch(59.03% 0.121 112.4)
XYZxyz(17.2138, 21.0988, 4.2641)
Luminance0.2110 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F841C #211C84
analogous
#84551C #7F841C #4B841C
triadic
#7F841C #1C7F84 #841C7F
tetradic
#7F841C #1C8455 #211C84 #841C4B
square
#7F841C #1C8455 #211C84 #841C4B
split-complementary
#7F841C #1C4B84 #551C84
monochromatic
#1E1F07 #4E5211 #7F841C #B0B627 #D0D743

Accessibility & contrast

On white

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

On black

5.22
#7F841C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F841C
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F841C#FFFFFF#000000##000000
##7F841C1.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E01
Deuteranopia (green-blind)
#8F8025
Tritanopia (blue-blind)
#887C71
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7f841c;
/* rgb */ color: rgb(127, 132, 28);
/* oklch */ color: oklch(59.0% 0.121 112.4);
Tailwind
colors: {
  custom: {
    50: '#a7a762',
    500: '#7f841c',
    950: '#000000',
  },
}
SCSS
$custom: #7f841c;
$custom-light: #a7a762;
$custom-dark: #000000;
JSON
{
  "hex": "#7f841c",
  "rgb": {
    "r": 127,
    "g": 132,
    "b": 28
  },
  "hsl": {
    "h": 62.885,
    "s": 65,
    "l": 31.373
  },
  "oklch": {
    "l": 0.59026,
    "c": 0.12102,
    "h": 112.4
  },
  "luminance": 0.21098
}

Semantic roles & 50–950 ramp

primary
#7F841C
secondary
#4A45B7
accent
#40E848
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7F841C

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

Preview Lab → · Contrast checker → · Palette generator →

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