#7B841F#7B841F

#7B841F is a mid, vivid yellow. Relative luminance 0.208; OKLCH L 58.7% C 0.121 H 114.7°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#7B841F
RGBrgb(123, 132, 31)
HSLhsl(65, 62%, 32%)
HSVhsv(65, 77%, 52%)
CMYKcmyk(6.8%, 0%, 76.5%, 48.2%)
CIE-LABlab(52.74, -16.45, 49.71)
CIE-LCHlch(52.74, 52.36, 108.31°)
OKLaboklab(58.7% -0.0503 0.1096)
OKLCHoklch(58.7% 0.121 114.7)
XYZxyz(16.6674, 20.8127, 4.4353)
Luminance0.2081 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B841F #281F84
analogous
#845B1F #7B841F #48841F
triadic
#7B841F #1F7B84 #841F7B
tetradic
#7B841F #1F845B #281F84 #841F48
square
#7B841F #1F845B #281F84 #841F48
split-complementary
#7B841F #1F4884 #5B1F84
monochromatic
#1F2108 #4D5213 #7B841F #A9B62B #C8D449

Accessibility & contrast

On white

4.07
#7B841F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#7B841F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B841F
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B841F#FFFFFF#000000##000000
##7B841F1.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b841f;
/* rgb */ color: rgb(123, 132, 31);
/* oklch */ color: oklch(58.7% 0.121 114.7);
Tailwind
colors: {
  custom: {
    50: '#a4a763',
    500: '#7b841f',
    950: '#000000',
  },
}
SCSS
$custom: #7b841f;
$custom-light: #a4a763;
$custom-dark: #000000;
JSON
{
  "hex": "#7b841f",
  "rgb": {
    "r": 123,
    "g": 132,
    "b": 31
  },
  "hsl": {
    "h": 65.347,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.58699,
    "c": 0.12054,
    "h": 114.7
  },
  "luminance": 0.20812
}

Semantic roles & 50–950 ramp

primary
#7B841F
secondary
#5248B7
accent
#43E551
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7B841F

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

Preview Lab → · Contrast checker → · Palette generator →

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