#7F701C#7F701C

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

Color values

HEX#7F701C
RGBrgb(127, 112, 28)
HSLhsl(51, 64%, 30%)
HSVhsv(51, 78%, 50%)
CMYKcmyk(0%, 11.8%, 78%, 50.2%)
CIE-LABlab(47.22, -3.75, 45.74)
CIE-LCHlch(47.22, 45.89, 94.69°)
OKLaboklab(54.37% -0.0152 0.1004)
OKLCHoklch(54.37% 0.102 98.6)
XYZxyz(14.7569, 16.1850, 3.4451)
Luminance0.1618 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F701C #1C2B7F
analogous
#7F3E1C #7F701C #5C7F1C
triadic
#7F701C #1C7F70 #701C7F
tetradic
#7F701C #1C7F3E #1C2B7F #7F1C5C
square
#7F701C #1C7F3E #1C2B7F #7F1C5C
split-complementary
#7F701C #1C5C7F #3E1C7F
monochromatic
#1B1806 #4D4411 #7F701C #B19C27 #D5BE40

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F701C#FFFFFF#000000##FFFFFF
##7F701C1.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)
#7C6D0C
Deuteranopia (green-blind)
#807222
Tritanopia (blue-blind)
#896760
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7f701c;
/* rgb */ color: rgb(127, 112, 28);
/* oklch */ color: oklch(54.4% 0.102 98.6);
Tailwind
colors: {
  custom: {
    50: '#a7985f',
    500: '#7f701c',
    950: '#000000',
  },
}
SCSS
$custom: #7f701c;
$custom-light: #a7985f;
$custom-dark: #000000;
JSON
{
  "hex": "#7f701c",
  "rgb": {
    "r": 127,
    "g": 112,
    "b": 28
  },
  "hsl": {
    "h": 50.909,
    "s": 63.871,
    "l": 30.392
  },
  "oklch": {
    "l": 0.54371,
    "c": 0.10152,
    "h": 98.6
  },
  "luminance": 0.16184
}

Semantic roles & 50–950 ramp

primary
#7F701C
secondary
#4455B3
accent
#5AE741
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100D05
muted
#7F7E79

Preview Lab

Preview with #7F701C

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

Preview Lab → · Contrast checker → · Palette generator →

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