#7B891F#7B891F

#7B891F is a mid, vivid yellow. Relative luminance 0.222; OKLCH L 59.9% C 0.126 H 117.1°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#7B891F
RGBrgb(123, 137, 31)
HSLhsl(68, 63%, 33%)
HSVhsv(68, 77%, 54%)
CMYKcmyk(10.2%, 0%, 77.4%, 46.3%)
CIE-LABlab(54.24, -19.06, 51.11)
CIE-LCHlch(54.24, 54.55, 110.45°)
OKLaboklab(59.9% -0.0575 0.1125)
OKLCHoklch(59.9% 0.126 117.1)
XYZxyz(17.3618, 22.2014, 4.6667)
Luminance0.2220 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B891F #2D1F89
analogous
#89621F #7B891F #46891F
triadic
#7B891F #1F7B89 #891F7B
tetradic
#7B891F #1F8962 #2D1F89 #891F46
square
#7B891F #1F8962 #2D1F89 #891F46
split-complementary
#7B891F #1F4689 #621F89
monochromatic
#212508 #4E5714 #7B891F #A8BB2A #C4D64C

Accessibility & contrast

On white

3.86
#7B891F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#7B891F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B891F
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B891F#FFFFFF#000000##000000
##7B891F1.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#938105
Deuteranopia (green-blind)
#918228
Tritanopia (blue-blind)
#838175
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7b891f;
/* rgb */ color: rgb(123, 137, 31);
/* oklch */ color: oklch(59.9% 0.126 117.1);
Tailwind
colors: {
  custom: {
    50: '#a4ab64',
    500: '#7b891f',
    950: '#000000',
  },
}
SCSS
$custom: #7b891f;
$custom-light: #a4ab64;
$custom-dark: #000000;
JSON
{
  "hex": "#7b891f",
  "rgb": {
    "r": 123,
    "g": 137,
    "b": 31
  },
  "hsl": {
    "h": 67.925,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.599,
    "c": 0.12637,
    "h": 117.1
  },
  "luminance": 0.22201
}

Semantic roles & 50–950 ramp

primary
#7B891F
secondary
#594BB9
accent
#42E657
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7B891F

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

Preview Lab → · Contrast checker → · Palette generator →

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