#7E741F#7E741F

#7E741F is a mid, moderate yellow. Relative luminance 0.170; OKLCH L 55.2% C 0.103 H 102.4°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#7E741F
RGBrgb(126, 116, 31)
HSLhsl(54, 61%, 31%)
HSVhsv(54, 75%, 49%)
CMYKcmyk(0%, 7.9%, 75.4%, 50.6%)
CIE-LABlab(48.29, -6.34, 45.56)
CIE-LCHlch(48.29, 46.00, 97.92°)
OKLaboklab(55.21% -0.0222 0.1007)
OKLCHoklch(55.21% 0.103 102.4)
XYZxyz(15.0976, 17.0260, 3.7871)
Luminance0.1703 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E741F #1F297E
analogous
#7E441F #7E741F #587E1F
triadic
#7E741F #1F7E74 #741F7E
tetradic
#7E741F #1F7E44 #1F297E #7E1F58
square
#7E741F #1F7E44 #1F297E #7E1F58
split-complementary
#7E741F #1F587E #441F7E
monochromatic
#1C1A07 #4D4713 #7E741F #AFA12B #D1C346

Accessibility & contrast

On white

4.77
#7E741F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#7E741F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E741F
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E741F#FFFFFF#000000##FFFFFF
##7E741F1.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7010
Deuteranopia (green-blind)
#827525
Tritanopia (blue-blind)
#886B63
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7e741f;
/* rgb */ color: rgb(126, 116, 31);
/* oklch */ color: oklch(55.2% 0.103 102.4);
Tailwind
colors: {
  custom: {
    50: '#a79b61',
    500: '#7e741f',
    950: '#000000',
  },
}
SCSS
$custom: #7e741f;
$custom-light: #a79b61;
$custom-dark: #000000;
JSON
{
  "hex": "#7e741f",
  "rgb": {
    "r": 126,
    "g": 116,
    "b": 31
  },
  "hsl": {
    "h": 53.684,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.55208,
    "c": 0.10308,
    "h": 102.4
  },
  "luminance": 0.17025
}

Semantic roles & 50–950 ramp

primary
#7E741F
secondary
#4853B1
accent
#55E444
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E741F

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

Preview Lab → · Contrast checker → · Palette generator →

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