#7E7B2E#7E7B2E

#7E7B2E is a mid, moderate yellow. Relative luminance 0.188; OKLCH L 57.0% C 0.099 H 107.0°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#7E7B2E
RGBrgb(126, 123, 46)
HSLhsl(58, 47%, 34%)
HSVhsv(58, 63%, 49%)
CMYKcmyk(0%, 2.4%, 63.5%, 50.6%)
CIE-LABlab(50.45, -9.32, 41.27)
CIE-LCHlch(50.45, 42.31, 102.72°)
OKLaboklab(56.96% -0.0289 0.0943)
OKLCHoklch(56.96% 0.099 107)
XYZxyz(16.1808, 18.7993, 5.3605)
Luminance0.1880 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7B2E #2E317E
analogous
#7E532E #7E7B2E #597E2E
triadic
#7E7B2E #2E7E7B #7B2E7E
tetradic
#7E7B2E #2E7E53 #2E317E #7E2E59
square
#7E7B2E #2E7E53 #2E317E #7E2E59
split-complementary
#7E7B2E #2E597E #532E7E
monochromatic
#24230D #514F1E #7E7B2E #ABA73E #C5C261

Accessibility & contrast

On white

4.41
#7E7B2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#7E7B2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7B2E
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7B2E#FFFFFF#000000##000000
##7E7B2E1.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#857625
Deuteranopia (green-blind)
#877A33
Tritanopia (blue-blind)
#87736B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7e7b2e;
/* rgb */ color: rgb(126, 123, 46);
/* oklch */ color: oklch(57.0% 0.099 107.0);
Tailwind
colors: {
  custom: {
    50: '#a6a16a',
    500: '#7e7b2e',
    950: '#000000',
  },
}
SCSS
$custom: #7e7b2e;
$custom-light: #a6a16a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7b2e",
  "rgb": {
    "r": 126,
    "g": 123,
    "b": 46
  },
  "hsl": {
    "h": 57.75,
    "s": 46.512,
    "l": 33.725
  },
  "oklch": {
    "l": 0.56964,
    "c": 0.09858,
    "h": 107
  },
  "luminance": 0.18799
}

Semantic roles & 50–950 ramp

primary
#7E7B2E
secondary
#5C5FAC
accent
#57D652
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E07
muted
#7F7E7A

Preview Lab

Preview with #7E7B2E

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

Preview Lab → · Contrast checker → · Palette generator →

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