#7F702C#7F702C

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

Color values

HEX#7F702C
RGBrgb(127, 112, 44)
HSLhsl(49, 49%, 34%)
HSVhsv(49, 65%, 50%)
CMYKcmyk(0%, 11.8%, 65.4%, 50.2%)
CIE-LABlab(47.34, -2.82, 38.88)
CIE-LCHlch(47.34, 38.98, 94.15°)
OKLaboklab(54.51% -0.0107 0.0888)
OKLCHoklch(54.51% 0.089 96.8)
XYZxyz(15.0018, 16.2829, 4.7351)
Luminance0.1628 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F702C #2C3B7F
analogous
#7F462C #7F702C #647F2C
triadic
#7F702C #2C7F70 #702C7F
tetradic
#7F702C #2C7F46 #2C3B7F #7F2C64
square
#7F702C #2C7F46 #2C3B7F #7F2C64
split-complementary
#7F702C #2C647F #462C7F
monochromatic
#24200D #52481C #7F702C #AC983C #C7B45E

Accessibility & contrast

On white

4.93
#7F702C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#7F702C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F702C
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F702C#FFFFFF#000000##FFFFFF
##7F702C1.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f702c;
/* rgb */ color: rgb(127, 112, 44);
/* oklch */ color: oklch(54.5% 0.089 96.8);
Tailwind
colors: {
  custom: {
    50: '#a79868',
    500: '#7f702c',
    950: '#000000',
  },
}
SCSS
$custom: #7f702c;
$custom-light: #a79868;
$custom-dark: #000000;
JSON
{
  "hex": "#7f702c",
  "rgb": {
    "r": 127,
    "g": 112,
    "b": 44
  },
  "hsl": {
    "h": 49.157,
    "s": 48.538,
    "l": 33.529
  },
  "oklch": {
    "l": 0.54513,
    "c": 0.08948,
    "h": 96.8
  },
  "luminance": 0.16282
}

Semantic roles & 50–950 ramp

primary
#7F702C
secondary
#5969AD
accent
#68D850
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100D06
muted
#7F7E7A

Preview Lab

Preview with #7F702C

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

Preview Lab → · Contrast checker → · Palette generator →

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