#7E741B#7E741B

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

Color values

HEX#7E741B
RGBrgb(126, 116, 27)
HSLhsl(54, 65%, 30%)
HSVhsv(54, 79%, 49%)
CMYKcmyk(0%, 7.9%, 78.6%, 50.6%)
CIE-LABlab(48.27, -6.53, 47.05)
CIE-LCHlch(48.27, 47.50, 97.90°)
OKLaboklab(55.18% -0.0231 0.103)
OKLCHoklch(55.18% 0.106 102.7)
XYZxyz(15.0481, 17.0062, 3.5266)
Luminance0.1701 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E741B #1B257E
analogous
#7E421B #7E741B #577E1B
triadic
#7E741B #1B7E74 #741B7E
tetradic
#7E741B #1B7E42 #1B257E #7E1B57
square
#7E741B #1B7E42 #1B257E #7E1B57
split-complementary
#7E741B #1B577E #421B7E
monochromatic
#191705 #4C4610 #7E741B #B0A226 #D6C63E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E741B#FFFFFF#000000##FFFFFF
##7E741B1.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)
#7F7008
Deuteranopia (green-blind)
#827522
Tritanopia (blue-blind)
#886B63
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7e741b;
/* rgb */ color: rgb(126, 116, 27);
/* oklch */ color: oklch(55.2% 0.106 102.7);
Tailwind
colors: {
  custom: {
    50: '#a79b5f',
    500: '#7e741b',
    950: '#000000',
  },
}
SCSS
$custom: #7e741b;
$custom-light: #a79b5f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e741b",
  "rgb": {
    "r": 126,
    "g": 116,
    "b": 27
  },
  "hsl": {
    "h": 53.939,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.55181,
    "c": 0.10558,
    "h": 102.7
  },
  "luminance": 0.17006
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E741B

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

Preview Lab → · Contrast checker → · Palette generator →

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