#7F7922#7F7922

#7F7922 is a mid, moderate yellow. Relative luminance 0.183; OKLCH L 56.5% C 0.106 H 105.4°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#7F7922
RGBrgb(127, 121, 34)
HSLhsl(56, 58%, 32%)
HSVhsv(56, 73%, 50%)
CMYKcmyk(0%, 4.7%, 73.2%, 50.2%)
CIE-LABlab(49.86, -8.51, 45.93)
CIE-LCHlch(49.86, 46.71, 100.49°)
OKLaboklab(56.49% -0.028 0.102)
OKLCHoklch(56.49% 0.106 105.4)
XYZxyz(15.8791, 18.3029, 4.2094)
Luminance0.1830 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7922 #22287F
analogous
#7F4B22 #7F7922 #577F22
triadic
#7F7922 #227F79 #79227F
tetradic
#7F7922 #227F4B #22287F #7F2257
square
#7F7922 #227F4B #22287F #7F2257
split-complementary
#7F7922 #22577F #4B227F
monochromatic
#1E1D08 #4F4B15 #7F7922 #AFA72F #CFC74C

Accessibility & contrast

On white

4.51
#7F7922 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#7F7922 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F7922
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7922#FFFFFF#000000##000000
##7F79221.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#847414
Deuteranopia (green-blind)
#867828
Tritanopia (blue-blind)
#897168
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7f7922;
/* rgb */ color: rgb(127, 121, 34);
/* oklch */ color: oklch(56.5% 0.106 105.4);
Tailwind
colors: {
  custom: {
    50: '#a79f63',
    500: '#7f7922',
    950: '#000000',
  },
}
SCSS
$custom: #7f7922;
$custom-light: #a79f63;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7922",
  "rgb": {
    "r": 127,
    "g": 121,
    "b": 34
  },
  "hsl": {
    "h": 56.129,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.56485,
    "c": 0.10576,
    "h": 105.4
  },
  "luminance": 0.18302
}

Semantic roles & 50–950 ramp

primary
#7F7922
secondary
#4B52B2
accent
#51E147
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E06
muted
#7F7E7A

Preview Lab

Preview with #7F7922

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

Preview Lab → · Contrast checker → · Palette generator →

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