#7E7922#7E7922

#7E7922 is a mid, moderate yellow. Relative luminance 0.182; OKLCH L 56.4% C 0.106 H 106.0°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#7E7922
RGBrgb(126, 121, 34)
HSLhsl(57, 58%, 31%)
HSVhsv(57, 73%, 49%)
CMYKcmyk(0%, 4%, 73%, 50.6%)
CIE-LABlab(49.77, -8.97, 45.81)
CIE-LCHlch(49.77, 46.68, 101.08°)
OKLaboklab(56.39% -0.0293 0.1018)
OKLCHoklch(56.39% 0.106 106)
XYZxyz(15.7309, 18.2264, 4.2025)
Luminance0.1823 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7922 #22277E
analogous
#7E4B22 #7E7922 #557E22
triadic
#7E7922 #227E79 #79227E
tetradic
#7E7922 #227E4B #22277E #7E2255
square
#7E7922 #227E4B #22277E #7E2255
split-complementary
#7E7922 #22557E #4B227E
monochromatic
#1E1C08 #4E4B15 #7E7922 #AEA72F #CFC84C

Accessibility & contrast

On white

4.52
#7E7922 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#7E7922 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7922
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7922#FFFFFF#000000##000000
##7E79221.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#847414
Deuteranopia (green-blind)
#867828
Tritanopia (blue-blind)
#887168
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7e7922;
/* rgb */ color: rgb(126, 121, 34);
/* oklch */ color: oklch(56.4% 0.106 106.0);
Tailwind
colors: {
  custom: {
    50: '#a69f63',
    500: '#7e7922',
    950: '#000000',
  },
}
SCSS
$custom: #7e7922;
$custom-light: #a69f63;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7922",
  "rgb": {
    "r": 126,
    "g": 121,
    "b": 34
  },
  "hsl": {
    "h": 56.739,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.5639,
    "c": 0.10589,
    "h": 106
  },
  "luminance": 0.18226
}

Semantic roles & 50–950 ramp

primary
#7E7922
secondary
#4B51B1
accent
#4FE147
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E06
muted
#7F7E7A

Preview Lab

Preview with #7E7922

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

Preview Lab → · Contrast checker → · Palette generator →

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