#7A7E1F#7A7E1F

#7A7E1F is a mid, moderate yellow. Relative luminance 0.192; OKLCH L 57.2% C 0.114 H 111.9°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#7A7E1F
RGBrgb(122, 126, 31)
HSLhsl(63, 61%, 31%)
HSVhsv(63, 75%, 49%)
CMYKcmyk(3.2%, 0%, 75.4%, 50.6%)
CIE-LABlab(50.87, -13.70, 47.91)
CIE-LCHlch(50.87, 49.83, 105.96°)
OKLaboklab(57.18% -0.0426 0.1058)
OKLCHoklch(57.18% 0.114 111.9)
XYZxyz(15.7347, 19.1586, 4.1652)
Luminance0.1916 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A7E1F #231F7E
analogous
#7E521F #7A7E1F #4A7E1F
triadic
#7A7E1F #1F7A7E #7E1F7A
tetradic
#7A7E1F #1F7E52 #231F7E #7E1F4A
square
#7A7E1F #1F7E52 #231F7E #7E1F4A
split-complementary
#7A7E1F #1F4A7E #521F7E
monochromatic
#1B1C07 #4A4D13 #7A7E1F #AAAF2B #CCD146

Accessibility & contrast

On white

4.35
#7A7E1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#7A7E1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A7E1F
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A7E1F#FFFFFF#000000##000000
##7A7E1F1.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#88780C
Deuteranopia (green-blind)
#887A27
Tritanopia (blue-blind)
#83766C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7a7e1f;
/* rgb */ color: rgb(122, 126, 31);
/* oklch */ color: oklch(57.2% 0.114 111.9);
Tailwind
colors: {
  custom: {
    50: '#a3a362',
    500: '#7a7e1f',
    950: '#000000',
  },
}
SCSS
$custom: #7a7e1f;
$custom-light: #a3a362;
$custom-dark: #000000;
JSON
{
  "hex": "#7a7e1f",
  "rgb": {
    "r": 122,
    "g": 126,
    "b": 31
  },
  "hsl": {
    "h": 62.526,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.57178,
    "c": 0.11403,
    "h": 111.9
  },
  "luminance": 0.19158
}

Semantic roles & 50–950 ramp

primary
#7A7E1F
secondary
#4C48B1
accent
#44E44B
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F05
muted
#7F7F7A

Preview Lab

Preview with #7A7E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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