#7F701B#7F701B

#7F701B is a mid, moderate yellow. Relative luminance 0.162; OKLCH L 54.4% C 0.102 H 98.7°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#7F701B
RGBrgb(127, 112, 27)
HSLhsl(51, 65%, 30%)
HSVhsv(51, 79%, 50%)
CMYKcmyk(0%, 11.8%, 78.7%, 50.2%)
CIE-LABlab(47.21, -3.79, 46.11)
CIE-LCHlch(47.21, 46.26, 94.71°)
OKLaboklab(54.36% -0.0155 0.101)
OKLCHoklch(54.36% 0.102 98.7)
XYZxyz(14.7451, 16.1802, 3.3831)
Luminance0.1618 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F701B #1B2A7F
analogous
#7F3E1B #7F701B #5C7F1B
triadic
#7F701B #1B7F70 #701B7F
tetradic
#7F701B #1B7F3E #1B2A7F #7F1B5C
square
#7F701B #1B7F3E #1B2A7F #7F1B5C
split-complementary
#7F701B #1B5C7F #3E1B7F
monochromatic
#1A1706 #4D4310 #7F701B #B19D26 #D6BF3E

Accessibility & contrast

On white

4.96
#7F701B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#7F701B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F701B
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F701B#FFFFFF#000000##FFFFFF
##7F701B1.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D0A
Deuteranopia (green-blind)
#807221
Tritanopia (blue-blind)
#896760
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7f701b;
/* rgb */ color: rgb(127, 112, 27);
/* oklch */ color: oklch(54.4% 0.102 98.7);
Tailwind
colors: {
  custom: {
    50: '#a8985f',
    500: '#7f701b',
    950: '#000000',
  },
}
SCSS
$custom: #7f701b;
$custom-light: #a8985f;
$custom-dark: #000000;
JSON
{
  "hex": "#7f701b",
  "rgb": {
    "r": 127,
    "g": 112,
    "b": 27
  },
  "hsl": {
    "h": 51,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.54364,
    "c": 0.10213,
    "h": 98.7
  },
  "luminance": 0.16179
}

Semantic roles & 50–950 ramp

primary
#7F701B
secondary
#4354B3
accent
#59E840
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D05
muted
#7F7E79

Preview Lab

Preview with #7F701B

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

Preview Lab → · Contrast checker → · Palette generator →

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