#7D702B#7D702B

#7D702B is a mid, moderate yellow. Relative luminance 0.161; OKLCH L 54.3% C 0.090 H 98.6°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#7D702B
RGBrgb(125, 112, 43)
HSLhsl(50, 49%, 33%)
HSVhsv(50, 66%, 49%)
CMYKcmyk(0%, 10.4%, 65.6%, 51%)
CIE-LABlab(47.14, -3.82, 39.08)
CIE-LCHlch(47.14, 39.27, 95.58°)
OKLaboklab(54.3% -0.0135 0.0892)
OKLCHoklch(54.3% 0.09 98.6)
XYZxyz(14.6883, 16.1234, 4.6235)
Luminance0.1612 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D702B #2B387D
analogous
#7D472B #7D702B #617D2B
triadic
#7D702B #2B7D70 #702B7D
tetradic
#7D702B #2B7D47 #2B387D #7D2B61
square
#7D702B #2B7D47 #2B387D #7D2B61
split-complementary
#7D702B #2B617D #472B7D
monochromatic
#221E0C #4F471B #7D702B #AB993B #C7B65C

Accessibility & contrast

On white

4.97
#7D702B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7D702B
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D702B#FFFFFF#000000##FFFFFF
##7D702B1.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6D23
Deuteranopia (green-blind)
#7E722F
Tritanopia (blue-blind)
#876861
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7d702b;
/* rgb */ color: rgb(125, 112, 43);
/* oklch */ color: oklch(54.3% 0.090 98.6);
Tailwind
colors: {
  custom: {
    50: '#a59868',
    500: '#7d702b',
    950: '#000000',
  },
}
SCSS
$custom: #7d702b;
$custom-light: #a59868;
$custom-dark: #000000;
JSON
{
  "hex": "#7d702b",
  "rgb": {
    "r": 125,
    "g": 112,
    "b": 43
  },
  "hsl": {
    "h": 50.488,
    "s": 48.81,
    "l": 32.941
  },
  "oklch": {
    "l": 0.54298,
    "c": 0.09019,
    "h": 98.6
  },
  "luminance": 0.16123
}

Semantic roles & 50–950 ramp

primary
#7D702B
secondary
#5765AD
accent
#65D84F
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100D06
muted
#7F7E7A

Preview Lab

Preview with #7D702B

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

Preview Lab → · Contrast checker → · Palette generator →

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