#7E751F#7E751F

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

Color values

HEX#7E751F
RGBrgb(126, 117, 31)
HSLhsl(54, 61%, 31%)
HSVhsv(54, 75%, 49%)
CMYKcmyk(0%, 7.1%, 75.4%, 50.6%)
CIE-LABlab(48.58, -6.90, 45.84)
CIE-LCHlch(48.58, 46.36, 98.56°)
OKLaboklab(55.44% -0.0238 0.1013)
OKLCHoklch(55.44% 0.104 103.2)
XYZxyz(15.2135, 17.2578, 3.8258)
Luminance0.1726 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E751F #1F287E
analogous
#7E451F #7E751F #577E1F
triadic
#7E751F #1F7E75 #751F7E
tetradic
#7E751F #1F7E45 #1F287E #7E1F57
square
#7E751F #1F7E45 #1F287E #7E1F57
split-complementary
#7E751F #1F577E #451F7E
monochromatic
#1C1A07 #4D4713 #7E751F #AFA32B #D1C446

Accessibility & contrast

On white

4.72
#7E751F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#7E751F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E751F
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E751F#FFFFFF#000000##FFFFFF
##7E751F1.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807110
Deuteranopia (green-blind)
#837525
Tritanopia (blue-blind)
#886C64
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7e751f;
/* rgb */ color: rgb(126, 117, 31);
/* oklch */ color: oklch(55.4% 0.104 103.2);
Tailwind
colors: {
  custom: {
    50: '#a79c61',
    500: '#7e751f',
    950: '#000000',
  },
}
SCSS
$custom: #7e751f;
$custom-light: #a79c61;
$custom-dark: #000000;
JSON
{
  "hex": "#7e751f",
  "rgb": {
    "r": 126,
    "g": 117,
    "b": 31
  },
  "hsl": {
    "h": 54.316,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.55439,
    "c": 0.10401,
    "h": 103.2
  },
  "luminance": 0.17257
}

Semantic roles & 50–950 ramp

primary
#7E751F
secondary
#4852B1
accent
#53E444
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7E751F

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

Preview Lab → · Contrast checker → · Palette generator →

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