#7E7728#7E7728

#7E7728 is a mid, moderate yellow. Relative luminance 0.178; OKLCH L 56.0% C 0.099 H 104.2°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#7E7728
RGBrgb(126, 119, 40)
HSLhsl(55, 52%, 33%)
HSVhsv(55, 68%, 49%)
CMYKcmyk(0%, 5.6%, 68.3%, 50.6%)
CIE-LABlab(49.23, -7.51, 42.72)
CIE-LCHlch(49.23, 43.37, 99.96°)
OKLaboklab(55.98% -0.0245 0.0963)
OKLCHoklch(55.98% 0.099 104.2)
XYZxyz(15.5846, 17.7831, 4.6186)
Luminance0.1778 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7728 #282F7E
analogous
#7E4C28 #7E7728 #5A7E28
triadic
#7E7728 #287E77 #77287E
tetradic
#7E7728 #287E4C #282F7E #7E285A
square
#7E7728 #287E4C #282F7E #7E285A
split-complementary
#7E7728 #285A7E #4C287E
monochromatic
#211F0B #504B19 #7E7728 #ACA337 #CAC057

Accessibility & contrast

On white

4.61
#7E7728 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#7E7728 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7E7728
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7728#FFFFFF#000000##FFFFFF
##7E77281.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82731E
Deuteranopia (green-blind)
#84772D
Tritanopia (blue-blind)
#876F67
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7e7728;
/* rgb */ color: rgb(126, 119, 40);
/* oklch */ color: oklch(56.0% 0.099 104.2);
Tailwind
colors: {
  custom: {
    50: '#a69e66',
    500: '#7e7728',
    950: '#000000',
  },
}
SCSS
$custom: #7e7728;
$custom-light: #a69e66;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7728",
  "rgb": {
    "r": 126,
    "g": 119,
    "b": 40
  },
  "hsl": {
    "h": 55.116,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.55977,
    "c": 0.0994,
    "h": 104.2
  },
  "luminance": 0.17782
}

Semantic roles & 50–950 ramp

primary
#7E7728
secondary
#535BAF
accent
#58DB4D
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E06
muted
#7F7E7A

Preview Lab

Preview with #7E7728

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

Preview Lab → · Contrast checker → · Palette generator →

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