#7F7E22#7F7E22

#7F7E22 is a mid, moderate yellow. Relative luminance 0.195; OKLCH L 57.7% C 0.111 H 108.8°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#7F7E22
RGBrgb(127, 126, 34)
HSLhsl(59, 58%, 32%)
HSVhsv(59, 73%, 50%)
CMYKcmyk(0%, 0.8%, 73.2%, 50.2%)
CIE-LABlab(51.32, -11.25, 47.35)
CIE-LCHlch(51.32, 48.67, 103.37°)
OKLaboklab(57.65% -0.0357 0.105)
OKLCHoklch(57.65% 0.111 108.8)
XYZxyz(16.5026, 19.5497, 4.4172)
Luminance0.1955 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7E22 #22237F
analogous
#7F5022 #7F7E22 #527F22
triadic
#7F7E22 #227F7E #7E227F
tetradic
#7F7E22 #227F50 #22237F #7F2252
square
#7F7E22 #227F50 #22237F #7F2252
split-complementary
#7F7E22 #22527F #50227F
monochromatic
#1E1E08 #4F4E15 #7F7E22 #AFAE2F #CFCE4C

Accessibility & contrast

On white

4.28
#7F7E22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#7F7E22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F7E22
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7E22#FFFFFF#000000##000000
##7F7E221.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#897912
Deuteranopia (green-blind)
#8A7C29
Tritanopia (blue-blind)
#88766C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7f7e22;
/* rgb */ color: rgb(127, 126, 34);
/* oklch */ color: oklch(57.7% 0.111 108.8);
Tailwind
colors: {
  custom: {
    50: '#a7a364',
    500: '#7f7e22',
    950: '#000000',
  },
}
SCSS
$custom: #7f7e22;
$custom-light: #a7a364;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7e22",
  "rgb": {
    "r": 127,
    "g": 126,
    "b": 34
  },
  "hsl": {
    "h": 59.355,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.57652,
    "c": 0.11092,
    "h": 108.8
  },
  "luminance": 0.19549
}

Semantic roles & 50–950 ramp

primary
#7F7E22
secondary
#4B4CB2
accent
#48E147
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7F7E22

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

Preview Lab → · Contrast checker → · Palette generator →

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