#7F701A#7F701A

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

Color values

HEX#7F701A
RGBrgb(127, 112, 26)
HSLhsl(51, 66%, 30%)
HSVhsv(51, 80%, 50%)
CMYKcmyk(0%, 11.8%, 79.5%, 50.2%)
CIE-LABlab(47.20, -3.84, 46.47)
CIE-LCHlch(47.20, 46.63, 94.72°)
OKLaboklab(54.36% -0.0157 0.1015)
OKLCHoklch(54.36% 0.103 98.8)
XYZxyz(14.7338, 16.1757, 3.3232)
Luminance0.1618 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F701A #1A297F
analogous
#7F3D1A #7F701A #5C7F1A
triadic
#7F701A #1A7F70 #701A7F
tetradic
#7F701A #1A7F3D #1A297F #7F1A5C
square
#7F701A #1A7F3D #1A297F #7F1A5C
split-complementary
#7F701A #1A5C7F #3D1A7F
monochromatic
#191605 #4C4310 #7F701A #B29D24 #D7C03C

Accessibility & contrast

On white

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

On black

4.23
#7F701A on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7F701A#FFFFFF#000000##FFFFFF
##7F701A1.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D07
Deuteranopia (green-blind)
#807220
Tritanopia (blue-blind)
#8A6760
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7f701a;
/* rgb */ color: rgb(127, 112, 26);
/* oklch */ color: oklch(54.4% 0.103 98.8);
Tailwind
colors: {
  custom: {
    50: '#a8985e',
    500: '#7f701a',
    950: '#000000',
  },
}
SCSS
$custom: #7f701a;
$custom-light: #a8985e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f701a",
  "rgb": {
    "r": 127,
    "g": 112,
    "b": 26
  },
  "hsl": {
    "h": 51.089,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.54358,
    "c": 0.10272,
    "h": 98.8
  },
  "luminance": 0.16175
}

Semantic roles & 50–950 ramp

primary
#7F701A
secondary
#4253B3
accent
#58E93F
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D05
muted
#7F7E79

Preview Lab

Preview with #7F701A

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

Preview Lab → · Contrast checker → · Palette generator →

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