#7F841B#7F841B

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

Color values

HEX#7F841B
RGBrgb(127, 132, 27)
HSLhsl(63, 66%, 31%)
HSVhsv(63, 80%, 52%)
CMYKcmyk(3.8%, 0%, 79.5%, 48.2%)
CIE-LABlab(53.05, -14.81, 51.47)
CIE-LCHlch(53.05, 53.56, 106.06°)
OKLaboklab(59.02% -0.0463 0.1124)
OKLCHoklch(59.02% 0.122 112.4)
XYZxyz(17.2021, 21.0941, 4.2021)
Luminance0.2109 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F841B #201B84
analogous
#84541B #7F841B #4A841B
triadic
#7F841B #1B7F84 #841B7F
tetradic
#7F841B #1B8454 #201B84 #841B4A
square
#7F841B #1B8454 #201B84 #841B4A
split-complementary
#7F841B #1B4A84 #541B84
monochromatic
#1D1E06 #4E5111 #7F841B #B0B725 #D1D841

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F841B#FFFFFF#000000##000000
##7F841B1.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)
#8F7D00
Deuteranopia (green-blind)
#8F8024
Tritanopia (blue-blind)
#887B71
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7f841b;
/* rgb */ color: rgb(127, 132, 27);
/* oklch */ color: oklch(59.0% 0.122 112.4);
Tailwind
colors: {
  custom: {
    50: '#a7a761',
    500: '#7f841b',
    950: '#000000',
  },
}
SCSS
$custom: #7f841b;
$custom-light: #a7a761;
$custom-dark: #000000;
JSON
{
  "hex": "#7f841b",
  "rgb": {
    "r": 127,
    "g": 132,
    "b": 27
  },
  "hsl": {
    "h": 62.857,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.5902,
    "c": 0.12156,
    "h": 112.4
  },
  "luminance": 0.21094
}

Semantic roles & 50–950 ramp

primary
#7F841B
secondary
#4943B7
accent
#3FE947
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7F841B

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

Preview Lab → · Contrast checker → · Palette generator →

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