#7E751B#7E751B

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

Color values

HEX#7E751B
RGBrgb(126, 117, 27)
HSLhsl(55, 65%, 30%)
HSVhsv(55, 79%, 49%)
CMYKcmyk(0%, 7.1%, 78.6%, 50.6%)
CIE-LABlab(48.56, -7.09, 47.32)
CIE-LCHlch(48.56, 47.85, 98.52°)
OKLaboklab(55.41% -0.0247 0.1036)
OKLCHoklch(55.41% 0.107 103.4)
XYZxyz(15.1640, 17.2380, 3.5652)
Luminance0.1724 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E751B #1B247E
analogous
#7E431B #7E751B #567E1B
triadic
#7E751B #1B7E75 #751B7E
tetradic
#7E751B #1B7E43 #1B247E #7E1B56
square
#7E751B #1B7E43 #1B247E #7E1B56
split-complementary
#7E751B #1B567E #431B7E
monochromatic
#191705 #4C4610 #7E751B #B0A426 #D6C83E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E751B#FFFFFF#000000##FFFFFF
##7E751B1.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)
#807107
Deuteranopia (green-blind)
#837522
Tritanopia (blue-blind)
#886C64
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7e751b;
/* rgb */ color: rgb(126, 117, 27);
/* oklch */ color: oklch(55.4% 0.106 103.4);
Tailwind
colors: {
  custom: {
    50: '#a79c5f',
    500: '#7e751b',
    950: '#000000',
  },
}
SCSS
$custom: #7e751b;
$custom-light: #a79c5f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e751b",
  "rgb": {
    "r": 126,
    "g": 117,
    "b": 27
  },
  "hsl": {
    "h": 54.545,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.55412,
    "c": 0.1065,
    "h": 103.4
  },
  "luminance": 0.17237
}

Semantic roles & 50–950 ramp

primary
#7E751B
secondary
#434DB2
accent
#4FE840
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E751B

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

Preview Lab → · Contrast checker → · Palette generator →

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