#7E8D2C#7E8D2C

#7E8D2C is a mid, vivid yellow. Relative luminance 0.237; OKLCH L 61.2% C 0.121 H 117.7°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#7E8D2C
RGBrgb(126, 141, 44)
HSLhsl(69, 52%, 36%)
HSVhsv(69, 69%, 55%)
CMYKcmyk(10.6%, 0%, 68.8%, 44.7%)
CIE-LABlab(55.75, -19.08, 47.73)
CIE-LCHlch(55.75, 51.40, 111.79°)
OKLaboklab(61.2% -0.0565 0.1076)
OKLCHoklch(61.2% 0.122 117.7)
XYZxyz(18.5841, 23.6674, 5.9716)
Luminance0.2367 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8D2C #3B2C8D
analogous
#8D6C2C #7E8D2C #4E8D2C
triadic
#7E8D2C #2C7E8D #8D2C7E
tetradic
#7E8D2C #2C8D6C #3B2C8D #8D2C4E
square
#7E8D2C #2C8D6C #3B2C8D #8D2C4E
split-complementary
#7E8D2C #2C4E8D #6C2C8D
monochromatic
#2B300F #545E1D #7E8D2C #A8BC3B #BECF65

Accessibility & contrast

On white

3.66
#7E8D2C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#7E8D2C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8D2C
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8D2C#FFFFFF#000000##000000
##7E8D2C1.003.665.735.73
#FFFFFF3.661.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#96851E
Deuteranopia (green-blind)
#958633
Tritanopia (blue-blind)
#868579
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7e8d2c;
/* rgb */ color: rgb(126, 141, 44);
/* oklch */ color: oklch(61.2% 0.121 117.7);
Tailwind
colors: {
  custom: {
    50: '#a6ae6b',
    500: '#7e8d2c',
    950: '#000000',
  },
}
SCSS
$custom: #7e8d2c;
$custom-light: #a6ae6b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8d2c",
  "rgb": {
    "r": 126,
    "g": 141,
    "b": 44
  },
  "hsl": {
    "h": 69.278,
    "s": 52.432,
    "l": 36.275
  },
  "oklch": {
    "l": 0.61201,
    "c": 0.1215,
    "h": 117.7
  },
  "luminance": 0.23667
}

Semantic roles & 50–950 ramp

primary
#7E8D2C
secondary
#6D60B5
accent
#4CDC62
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7E8D2C

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

Preview Lab → · Contrast checker → · Palette generator →

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