#7F7A22#7F7A22

#7F7A22 is a mid, moderate yellow. Relative luminance 0.185; OKLCH L 56.7% C 0.107 H 106.1°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#7F7A22
RGBrgb(127, 122, 34)
HSLhsl(57, 58%, 32%)
HSVhsv(57, 73%, 50%)
CMYKcmyk(0%, 3.9%, 73.2%, 50.2%)
CIE-LABlab(50.15, -9.06, 46.21)
CIE-LCHlch(50.15, 47.09, 101.09°)
OKLaboklab(56.72% -0.0296 0.1026)
OKLCHoklch(56.72% 0.107 106.1)
XYZxyz(16.0013, 18.5472, 4.2501)
Luminance0.1855 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7A22 #22277F
analogous
#7F4C22 #7F7A22 #567F22
triadic
#7F7A22 #227F7A #7A227F
tetradic
#7F7A22 #227F4C #22277F #7F2256
square
#7F7A22 #227F4C #22277F #7F2256
split-complementary
#7F7A22 #22567F #4C227F
monochromatic
#1E1D08 #4F4C15 #7F7A22 #AFA82F #CFC84C

Accessibility & contrast

On white

4.46
#7F7A22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#7F7A22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F7A22
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7A22#FFFFFF#000000##000000
##7F7A221.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#857513
Deuteranopia (green-blind)
#877928
Tritanopia (blue-blind)
#897269
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7f7a22;
/* rgb */ color: rgb(127, 122, 34);
/* oklch */ color: oklch(56.7% 0.107 106.1);
Tailwind
colors: {
  custom: {
    50: '#a7a063',
    500: '#7f7a22',
    950: '#000000',
  },
}
SCSS
$custom: #7f7a22;
$custom-light: #a7a063;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7a22",
  "rgb": {
    "r": 127,
    "g": 122,
    "b": 34
  },
  "hsl": {
    "h": 56.774,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.56718,
    "c": 0.10677,
    "h": 106.1
  },
  "luminance": 0.18547
}

Semantic roles & 50–950 ramp

primary
#7F7A22
secondary
#4B51B2
accent
#4FE147
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E06
muted
#7F7E7A

Preview Lab

Preview with #7F7A22

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

Preview Lab → · Contrast checker → · Palette generator →

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