#7D701B#7D701B

#7D701B is a mid, moderate yellow. Relative luminance 0.160; OKLCH L 54.2% C 0.102 H 100.2°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#7D701B
RGBrgb(125, 112, 27)
HSLhsl(52, 64%, 30%)
HSVhsv(52, 78%, 49%)
CMYKcmyk(0%, 10.4%, 78.4%, 51%)
CIE-LABlab(47.01, -4.74, 45.85)
CIE-LCHlch(47.01, 46.09, 95.91°)
OKLaboklab(54.16% -0.018 0.1005)
OKLCHoklch(54.16% 0.102 100.2)
XYZxyz(14.4501, 16.0281, 3.3693)
Luminance0.1603 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D701B #1B287D
analogous
#7D3F1B #7D701B #597D1B
triadic
#7D701B #1B7D70 #701B7D
tetradic
#7D701B #1B7D3F #1B287D #7D1B59
square
#7D701B #1B7D3F #1B287D #7D1B59
split-complementary
#7D701B #1B597D #3F1B7D
monochromatic
#191705 #4B4310 #7D701B #AF9D26 #D5C13D

Accessibility & contrast

On white

4.99
#7D701B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#7D701B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D701B
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D701B#FFFFFF#000000##FFFFFF
##7D701B1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6D0A
Deuteranopia (green-blind)
#7F7221
Tritanopia (blue-blind)
#876760
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7d701b;
/* rgb */ color: rgb(125, 112, 27);
/* oklch */ color: oklch(54.2% 0.102 100.2);
Tailwind
colors: {
  custom: {
    50: '#a6985f',
    500: '#7d701b',
    950: '#000000',
  },
}
SCSS
$custom: #7d701b;
$custom-light: #a6985f;
$custom-dark: #000000;
JSON
{
  "hex": "#7d701b",
  "rgb": {
    "r": 125,
    "g": 112,
    "b": 27
  },
  "hsl": {
    "h": 52.041,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.5416,
    "c": 0.10211,
    "h": 100.2
  },
  "luminance": 0.16027
}

Semantic roles & 50–950 ramp

primary
#7D701B
secondary
#4351B1
accent
#57E740
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D05
muted
#7F7E79

Preview Lab

Preview with #7D701B

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

Preview Lab → · Contrast checker → · Palette generator →

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