#7A841F#7A841F

#7A841F is a mid, vivid yellow. Relative luminance 0.207; OKLCH L 58.6% C 0.121 H 115.2°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#7A841F
RGBrgb(122, 132, 31)
HSLhsl(66, 62%, 32%)
HSVhsv(66, 77%, 52%)
CMYKcmyk(7.6%, 0%, 76.5%, 48.2%)
CIE-LABlab(52.66, -16.90, 49.60)
CIE-LCHlch(52.66, 52.40, 108.81°)
OKLaboklab(58.61% -0.0515 0.1094)
OKLCHoklch(58.61% 0.121 115.2)
XYZxyz(16.5251, 20.7393, 4.4286)
Luminance0.2074 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A841F #291F84
analogous
#845C1F #7A841F #47841F
triadic
#7A841F #1F7A84 #841F7A
tetradic
#7A841F #1F845C #291F84 #841F47
square
#7A841F #1F845C #291F84 #841F47
split-complementary
#7A841F #1F4784 #5C1F84
monochromatic
#1E2108 #4C5213 #7A841F #A8B62B #C7D449

Accessibility & contrast

On white

4.08
#7A841F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#7A841F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A841F
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A841F#FFFFFF#000000##000000
##7A841F1.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D08
Deuteranopia (green-blind)
#8D7E28
Tritanopia (blue-blind)
#827C71
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7a841f;
/* rgb */ color: rgb(122, 132, 31);
/* oklch */ color: oklch(58.6% 0.121 115.2);
Tailwind
colors: {
  custom: {
    50: '#a3a763',
    500: '#7a841f',
    950: '#000000',
  },
}
SCSS
$custom: #7a841f;
$custom-light: #a3a763;
$custom-dark: #000000;
JSON
{
  "hex": "#7a841f",
  "rgb": {
    "r": 122,
    "g": 132,
    "b": 31
  },
  "hsl": {
    "h": 65.941,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.58613,
    "c": 0.12087,
    "h": 115.2
  },
  "luminance": 0.20739
}

Semantic roles & 50–950 ramp

primary
#7A841F
secondary
#5348B7
accent
#43E553
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7A841F

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

Preview Lab → · Contrast checker → · Palette generator →

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