#7F751B#7F751B

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

Color values

HEX#7F751B
RGBrgb(127, 117, 27)
HSLhsl(54, 65%, 30%)
HSVhsv(54, 79%, 50%)
CMYKcmyk(0%, 7.9%, 78.7%, 50.2%)
CIE-LABlab(48.65, -6.62, 47.45)
CIE-LCHlch(48.65, 47.91, 97.94°)
OKLaboklab(55.51% -0.0234 0.1038)
OKLCHoklch(55.51% 0.106 102.7)
XYZxyz(15.3122, 17.3144, 3.5722)
Luminance0.1731 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F751B #1B257F
analogous
#7F431B #7F751B #577F1B
triadic
#7F751B #1B7F75 #751B7F
tetradic
#7F751B #1B7F43 #1B257F #7F1B57
square
#7F751B #1B7F43 #1B257F #7F1B57
split-complementary
#7F751B #1B577F #431B7F
monochromatic
#1A1806 #4D4710 #7F751B #B1A326 #D6C73E

Accessibility & contrast

On white

4.71
#7F751B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#7F751B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F751B
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F751B#FFFFFF#000000##FFFFFF
##7F751B1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f751b;
/* rgb */ color: rgb(127, 117, 27);
/* oklch */ color: oklch(55.5% 0.106 102.7);
Tailwind
colors: {
  custom: {
    50: '#a79c5f',
    500: '#7f751b',
    950: '#000000',
  },
}
SCSS
$custom: #7f751b;
$custom-light: #a79c5f;
$custom-dark: #000000;
JSON
{
  "hex": "#7f751b",
  "rgb": {
    "r": 127,
    "g": 117,
    "b": 27
  },
  "hsl": {
    "h": 54,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.5551,
    "c": 0.10642,
    "h": 102.7
  },
  "luminance": 0.17314
}

Semantic roles & 50–950 ramp

primary
#7F751B
secondary
#434EB3
accent
#51E840
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7F751B

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

Preview Lab → · Contrast checker → · Palette generator →

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