#7A801F#7A801F

#7A801F is a mid, moderate yellow. Relative luminance 0.197; OKLCH L 57.7% C 0.116 H 113.1°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#7A801F
RGBrgb(122, 128, 31)
HSLhsl(64, 61%, 31%)
HSVhsv(64, 76%, 50%)
CMYKcmyk(4.7%, 0%, 75.8%, 49.8%)
CIE-LABlab(51.47, -14.77, 48.47)
CIE-LCHlch(51.47, 50.68, 106.95°)
OKLaboklab(57.66% -0.0456 0.107)
OKLCHoklch(57.66% 0.116 113.1)
XYZxyz(15.9930, 19.6752, 4.2513)
Luminance0.1968 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A801F #251F80
analogous
#80551F #7A801F #49801F
triadic
#7A801F #1F7A80 #801F7A
tetradic
#7A801F #1F8055 #251F80 #801F49
square
#7A801F #1F8055 #251F80 #801F49
split-complementary
#7A801F #1F4980 #551F80
monochromatic
#1C1D07 #4B4F13 #7A801F #A9B12B #CAD247

Accessibility & contrast

On white

4.26
#7A801F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#7A801F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A801F
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A801F#FFFFFF#000000##000000
##7A801F1.004.264.944.94
#FFFFFF4.261.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A0B
Deuteranopia (green-blind)
#8A7C27
Tritanopia (blue-blind)
#83786D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7a801f;
/* rgb */ color: rgb(122, 128, 31);
/* oklch */ color: oklch(57.7% 0.116 113.1);
Tailwind
colors: {
  custom: {
    50: '#a3a463',
    500: '#7a801f',
    950: '#000000',
  },
}
SCSS
$custom: #7a801f;
$custom-light: #a3a463;
$custom-dark: #000000;
JSON
{
  "hex": "#7a801f",
  "rgb": {
    "r": 122,
    "g": 128,
    "b": 31
  },
  "hsl": {
    "h": 63.711,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.57655,
    "c": 0.11629,
    "h": 113.1
  },
  "luminance": 0.19675
}

Semantic roles & 50–950 ramp

primary
#7A801F
secondary
#4E48B3
accent
#44E44E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #7A801F

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

Preview Lab → · Contrast checker → · Palette generator →

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