#7F8422#7F8422

#7F8422 is a mid, moderate yellow. Relative luminance 0.211; OKLCH L 59.1% C 0.117 H 112.4°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#7F8422
RGBrgb(127, 132, 34)
HSLhsl(63, 59%, 33%)
HSVhsv(63, 74%, 52%)
CMYKcmyk(3.8%, 0%, 74.2%, 48.2%)
CIE-LABlab(53.09, -14.49, 49.06)
CIE-LCHlch(53.09, 51.16, 106.45°)
OKLaboklab(59.07% -0.0448 0.1086)
OKLCHoklch(59.07% 0.117 112.4)
XYZxyz(17.2929, 21.1305, 4.6807)
Luminance0.2113 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8422 #272284
analogous
#845822 #7F8422 #4E8422
triadic
#7F8422 #227F84 #84227F
tetradic
#7F8422 #228458 #272284 #84224E
square
#7F8422 #228458 #272284 #84224E
split-complementary
#7F8422 #224E84 #582284
monochromatic
#212309 #505315 #7F8422 #AEB52F #CBD24F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F8422#FFFFFF#000000##000000
##7F84221.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)
#8E7E0F
Deuteranopia (green-blind)
#8F802A
Tritanopia (blue-blind)
#887C71
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7f8422;
/* rgb */ color: rgb(127, 132, 34);
/* oklch */ color: oklch(59.1% 0.117 112.4);
Tailwind
colors: {
  custom: {
    50: '#a7a765',
    500: '#7f8422',
    950: '#000000',
  },
}
SCSS
$custom: #7f8422;
$custom-light: #a7a765;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8422",
  "rgb": {
    "r": 127,
    "g": 132,
    "b": 34
  },
  "hsl": {
    "h": 63.061,
    "s": 59.036,
    "l": 32.549
  },
  "oklch": {
    "l": 0.59065,
    "c": 0.11747,
    "h": 112.4
  },
  "luminance": 0.2113
}

Semantic roles & 50–950 ramp

primary
#7F8422
secondary
#524DB5
accent
#46E24E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7F8422

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

Preview Lab → · Contrast checker → · Palette generator →

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