#7F751F#7F751F

#7F751F is a mid, moderate yellow. Relative luminance 0.173; OKLCH L 55.5% C 0.104 H 102.5°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#7F751F
RGBrgb(127, 117, 31)
HSLhsl(54, 61%, 31%)
HSVhsv(54, 76%, 50%)
CMYKcmyk(0%, 7.9%, 75.6%, 50.2%)
CIE-LABlab(48.68, -6.43, 45.97)
CIE-LCHlch(48.68, 46.42, 97.96°)
OKLaboklab(55.54% -0.0225 0.1015)
OKLCHoklch(55.54% 0.104 102.5)
XYZxyz(15.3617, 17.3342, 3.8327)
Luminance0.1733 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F751F #1F297F
analogous
#7F451F #7F751F #597F1F
triadic
#7F751F #1F7F75 #751F7F
tetradic
#7F751F #1F7F45 #1F297F #7F1F59
square
#7F751F #1F7F45 #1F297F #7F1F59
split-complementary
#7F751F #1F597F #451F7F
monochromatic
#1D1A07 #4E4813 #7F751F #B0A22B #D2C346

Accessibility & contrast

On white

4.70
#7F751F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#7F751F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F751F
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F751F#FFFFFF#000000##FFFFFF
##7F751F1.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807110
Deuteranopia (green-blind)
#837625
Tritanopia (blue-blind)
#896C64
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7f751f;
/* rgb */ color: rgb(127, 117, 31);
/* oklch */ color: oklch(55.5% 0.104 102.5);
Tailwind
colors: {
  custom: {
    50: '#a79c61',
    500: '#7f751f',
    950: '#000000',
  },
}
SCSS
$custom: #7f751f;
$custom-light: #a79c61;
$custom-dark: #000000;
JSON
{
  "hex": "#7f751f",
  "rgb": {
    "r": 127,
    "g": 117,
    "b": 31
  },
  "hsl": {
    "h": 53.75,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.55538,
    "c": 0.10394,
    "h": 102.5
  },
  "luminance": 0.17334
}

Semantic roles & 50–950 ramp

primary
#7F751F
secondary
#4853B2
accent
#55E444
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7F751F

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

Preview Lab → · Contrast checker → · Palette generator →

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