#7E7828#7E7828

#7E7828 is a mid, moderate yellow. Relative luminance 0.180; OKLCH L 56.2% C 0.100 H 105.0°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#7E7828
RGBrgb(126, 120, 40)
HSLhsl(56, 52%, 33%)
HSVhsv(56, 68%, 49%)
CMYKcmyk(0%, 4.8%, 68.3%, 50.6%)
CIE-LABlab(49.52, -8.06, 43.02)
CIE-LCHlch(49.52, 43.77, 100.61°)
OKLaboklab(56.21% -0.026 0.097)
OKLCHoklch(56.21% 0.1 105)
XYZxyz(15.7043, 18.0223, 4.6585)
Luminance0.1802 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7828 #282E7E
analogous
#7E4D28 #7E7828 #597E28
triadic
#7E7828 #287E78 #78287E
tetradic
#7E7828 #287E4D #282E7E #7E2859
square
#7E7828 #287E4D #282E7E #7E2859
split-complementary
#7E7828 #28597E #4D287E
monochromatic
#21200B #504C19 #7E7828 #ACA437 #CAC257

Accessibility & contrast

On white

4.56
#7E7828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#7E7828 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7828
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7828#FFFFFF#000000##000000
##7E78281.004.564.604.60
#FFFFFF4.561.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#83741D
Deuteranopia (green-blind)
#85772D
Tritanopia (blue-blind)
#877068
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7e7828;
/* rgb */ color: rgb(126, 120, 40);
/* oklch */ color: oklch(56.2% 0.100 105.0);
Tailwind
colors: {
  custom: {
    50: '#a69e67',
    500: '#7e7828',
    950: '#000000',
  },
}
SCSS
$custom: #7e7828;
$custom-light: #a69e67;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7828",
  "rgb": {
    "r": 126,
    "g": 120,
    "b": 40
  },
  "hsl": {
    "h": 55.814,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.56208,
    "c": 0.10041,
    "h": 105
  },
  "luminance": 0.18022
}

Semantic roles & 50–950 ramp

primary
#7E7828
secondary
#535AAF
accent
#56DB4D
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E06
muted
#7F7E7A

Preview Lab

Preview with #7E7828

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

Preview Lab → · Contrast checker → · Palette generator →

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