#7F7C22#7F7C22

#7F7C22 is a mid, moderate yellow. Relative luminance 0.190; OKLCH L 57.2% C 0.109 H 107.5°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#7F7C22
RGBrgb(127, 124, 34)
HSLhsl(58, 58%, 32%)
HSVhsv(58, 73%, 50%)
CMYKcmyk(0%, 2.4%, 73.2%, 50.2%)
CIE-LABlab(50.74, -10.16, 46.78)
CIE-LCHlch(50.74, 47.87, 102.25°)
OKLaboklab(57.18% -0.0327 0.1038)
OKLCHoklch(57.18% 0.109 107.5)
XYZxyz(16.2494, 19.0434, 4.3328)
Luminance0.1904 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7C22 #22257F
analogous
#7F4E22 #7F7C22 #547F22
triadic
#7F7C22 #227F7C #7C227F
tetradic
#7F7C22 #227F4E #22257F #7F2254
square
#7F7C22 #227F4E #22257F #7F2254
split-complementary
#7F7C22 #22547F #4E227F
monochromatic
#1E1E08 #4F4D15 #7F7C22 #AFAB2F #CFCB4C

Accessibility & contrast

On white

4.37
#7F7C22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#7F7C22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F7C22
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7C22#FFFFFF#000000##000000
##7F7C221.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#877713
Deuteranopia (green-blind)
#887A28
Tritanopia (blue-blind)
#88746A
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7f7c22;
/* rgb */ color: rgb(127, 124, 34);
/* oklch */ color: oklch(57.2% 0.109 107.5);
Tailwind
colors: {
  custom: {
    50: '#a7a164',
    500: '#7f7c22',
    950: '#000000',
  },
}
SCSS
$custom: #7f7c22;
$custom-light: #a7a164;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7c22",
  "rgb": {
    "r": 127,
    "g": 124,
    "b": 34
  },
  "hsl": {
    "h": 58.065,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.57184,
    "c": 0.10881,
    "h": 107.5
  },
  "luminance": 0.19043
}

Semantic roles & 50–950 ramp

primary
#7F7C22
secondary
#4B4FB2
accent
#4CE147
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E06
muted
#7F7E7A

Preview Lab

Preview with #7F7C22

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

Preview Lab → · Contrast checker → · Palette generator →

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