#7C702F#7C702F

#7C702F is a mid, moderate yellow. Relative luminance 0.161; OKLCH L 54.2% C 0.086 H 98.9°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#7C702F
RGBrgb(124, 112, 47)
HSLhsl(51, 45%, 34%)
HSVhsv(51, 62%, 49%)
CMYKcmyk(0%, 9.7%, 62.1%, 51.4%)
CIE-LABlab(47.08, -3.99, 37.03)
CIE-LCHlch(47.08, 37.24, 96.15°)
OKLaboklab(54.24% -0.0134 0.0854)
OKLCHoklch(54.24% 0.086 98.9)
XYZxyz(14.6200, 16.0793, 5.0223)
Luminance0.1608 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C702F #2F3B7C
analogous
#7C492F #7C702F #617C2F
triadic
#7C702F #2F7C70 #702F7C
tetradic
#7C702F #2F7C49 #2F3B7C #7C2F61
square
#7C702F #2F7C49 #2F3B7C #7C2F61
split-complementary
#7C702F #2F617C #492F7C
monochromatic
#23200D #50481E #7C702F #A89840 #C3B462

Accessibility & contrast

On white

4.98
#7C702F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#7C702F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C702F
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C702F#FFFFFF#000000##FFFFFF
##7C702F1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6D28
Deuteranopia (green-blind)
#7E7232
Tritanopia (blue-blind)
#856862
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7c702f;
/* rgb */ color: rgb(124, 112, 47);
/* oklch */ color: oklch(54.2% 0.086 98.9);
Tailwind
colors: {
  custom: {
    50: '#a4986a',
    500: '#7c702f',
    950: '#000000',
  },
}
SCSS
$custom: #7c702f;
$custom-light: #a4986a;
$custom-dark: #000000;
JSON
{
  "hex": "#7c702f",
  "rgb": {
    "r": 124,
    "g": 112,
    "b": 47
  },
  "hsl": {
    "h": 50.649,
    "s": 45.029,
    "l": 33.529
  },
  "oklch": {
    "l": 0.54242,
    "c": 0.08647,
    "h": 98.9
  },
  "luminance": 0.16079
}

Semantic roles & 50–950 ramp

primary
#7C702F
secondary
#5C69AA
accent
#67D553
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0D07
muted
#7F7E7A

Preview Lab

Preview with #7C702F

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

Preview Lab → · Contrast checker → · Palette generator →

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