#7E793B#7E793B

#7E793B is a mid, moderate yellow. Relative luminance 0.184; OKLCH L 56.7% C 0.084 H 104.6°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#7E793B
RGBrgb(126, 121, 59)
HSLhsl(56, 36%, 36%)
HSVhsv(56, 53%, 49%)
CMYKcmyk(0%, 4%, 53.2%, 50.6%)
CIE-LABlab(50.01, -7.12, 34.31)
CIE-LCHlch(50.01, 35.04, 101.73°)
OKLaboklab(56.66% -0.0211 0.081)
OKLCHoklch(56.66% 0.084 104.6)
XYZxyz(16.2314, 18.4266, 6.8385)
Luminance0.1843 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E793B #3B407E
analogous
#7E583B #7E793B #627E3B
triadic
#7E793B #3B7E79 #793B7E
tetradic
#7E793B #3B7E58 #3B407E #7E3B62
square
#7E793B #3B7E58 #3B407E #7E3B62
split-complementary
#7E793B #3B627E #583B7E
monochromatic
#2B2914 #545127 #7E793B #A8A14F #BEB975

Accessibility & contrast

On white

4.48
#7E793B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#7E793B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E793B
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E793B#FFFFFF#000000##000000
##7E793B1.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#827535
Deuteranopia (green-blind)
#84783E
Tritanopia (blue-blind)
#86726B
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7e793b;
/* rgb */ color: rgb(126, 121, 59);
/* oklch */ color: oklch(56.7% 0.084 104.6);
Tailwind
colors: {
  custom: {
    50: '#a59f73',
    500: '#7e793b',
    950: '#000000',
  },
}
SCSS
$custom: #7e793b;
$custom-light: #a59f73;
$custom-dark: #000000;
JSON
{
  "hex": "#7e793b",
  "rgb": {
    "r": 126,
    "g": 121,
    "b": 59
  },
  "hsl": {
    "h": 55.522,
    "s": 36.216,
    "l": 36.275
  },
  "oklch": {
    "l": 0.56658,
    "c": 0.08366,
    "h": 104.6
  },
  "luminance": 0.18426
}

Semantic roles & 50–950 ramp

primary
#7E793B
secondary
#6D71A8
accent
#64CC5C
background
#FAF9F7
surface
#F4F2ED
border
#CECCC8
text
#0F0E08
muted
#7F7E7B

Preview Lab

Preview with #7E793B

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

Preview Lab → · Contrast checker → · Palette generator →

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