#7F702A#7F702A

#7F702A is a mid, moderate yellow. Relative luminance 0.163; OKLCH L 54.5% C 0.091 H 97.1°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#7F702A
RGBrgb(127, 112, 42)
HSLhsl(49, 50%, 33%)
HSVhsv(49, 67%, 50%)
CMYKcmyk(0%, 11.8%, 66.9%, 50.2%)
CIE-LABlab(47.32, -2.96, 39.82)
CIE-LCHlch(47.32, 39.93, 94.25°)
OKLaboklab(54.49% -0.0113 0.0905)
OKLCHoklch(54.49% 0.091 97.1)
XYZxyz(14.9652, 16.2682, 4.5419)
Luminance0.1627 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F702A #2A397F
analogous
#7F452A #7F702A #637F2A
triadic
#7F702A #2A7F70 #702A7F
tetradic
#7F702A #2A7F45 #2A397F #7F2A63
square
#7F702A #2A7F45 #2A397F #7F2A63
split-complementary
#7F702A #2A637F #452A7F
monochromatic
#231F0C #51471B #7F702A #AD9939 #C9B55B

Accessibility & contrast

On white

4.94
#7F702A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#7F702A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F702A
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F702A#FFFFFF#000000##FFFFFF
##7F702A1.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6D22
Deuteranopia (green-blind)
#7F722E
Tritanopia (blue-blind)
#896861
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7f702a;
/* rgb */ color: rgb(127, 112, 42);
/* oklch */ color: oklch(54.5% 0.091 97.1);
Tailwind
colors: {
  custom: {
    50: '#a79867',
    500: '#7f702a',
    950: '#000000',
  },
}
SCSS
$custom: #7f702a;
$custom-light: #a79867;
$custom-dark: #000000;
JSON
{
  "hex": "#7f702a",
  "rgb": {
    "r": 127,
    "g": 112,
    "b": 42
  },
  "hsl": {
    "h": 49.412,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.54491,
    "c": 0.09122,
    "h": 97.1
  },
  "luminance": 0.16268
}

Semantic roles & 50–950 ramp

primary
#7F702A
secondary
#5766AE
accent
#67DA4E
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100D06
muted
#7F7E7A

Preview Lab

Preview with #7F702A

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

Preview Lab → · Contrast checker → · Palette generator →

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