#7F751A#7F751A

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

Color values

HEX#7F751A
RGBrgb(127, 117, 26)
HSLhsl(54, 66%, 30%)
HSVhsv(54, 80%, 50%)
CMYKcmyk(0%, 7.9%, 79.5%, 50.2%)
CIE-LABlab(48.65, -6.66, 47.80)
CIE-LCHlch(48.65, 48.26, 97.93°)
OKLaboklab(55.5% -0.0237 0.1044)
OKLCHoklch(55.5% 0.107 102.8)
XYZxyz(15.3008, 17.3099, 3.5123)
Luminance0.1731 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F751A #1A247F
analogous
#7F421A #7F751A #577F1A
triadic
#7F751A #1A7F75 #751A7F
tetradic
#7F751A #1A7F42 #1A247F #7F1A57
square
#7F751A #1A7F42 #1A247F #7F1A57
split-complementary
#7F751A #1A577F #421A7F
monochromatic
#191705 #4C4610 #7F751A #B2A424 #D7C83C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F751A#FFFFFF#000000##FFFFFF
##7F751A1.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)
#807105
Deuteranopia (green-blind)
#837621
Tritanopia (blue-blind)
#896C64
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7f751a;
/* rgb */ color: rgb(127, 117, 26);
/* oklch */ color: oklch(55.5% 0.107 102.8);
Tailwind
colors: {
  custom: {
    50: '#a89c5f',
    500: '#7f751a',
    950: '#000000',
  },
}
SCSS
$custom: #7f751a;
$custom-light: #a89c5f;
$custom-dark: #000000;
JSON
{
  "hex": "#7f751a",
  "rgb": {
    "r": 127,
    "g": 117,
    "b": 26
  },
  "hsl": {
    "h": 54.059,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.55504,
    "c": 0.107,
    "h": 102.8
  },
  "luminance": 0.17309
}

Semantic roles & 50–950 ramp

primary
#7F751A
secondary
#424DB3
accent
#50E93F
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7F751A

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

Preview Lab → · Contrast checker → · Palette generator →

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