#7B891B#7B891B

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

Color values

HEX#7B891B
RGBrgb(123, 137, 27)
HSLhsl(68, 67%, 32%)
HSVhsv(68, 80%, 54%)
CMYKcmyk(10.2%, 0%, 80.3%, 46.3%)
CIE-LABlab(54.22, -19.24, 52.40)
CIE-LCHlch(54.22, 55.82, 110.16°)
OKLaboklab(59.88% -0.0583 0.1145)
OKLCHoklch(59.88% 0.129 117)
XYZxyz(17.3123, 22.1816, 4.4062)
Luminance0.2218 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B891B #291B89
analogous
#89601B #7B891B #44891B
triadic
#7B891B #1B7B89 #891B7B
tetradic
#7B891B #1B8960 #291B89 #891B44
square
#7B891B #1B8960 #291B89 #891B44
split-complementary
#7B891B #1B4489 #601B89
monochromatic
#1F2307 #4D5611 #7B891B #A9BC25 #C7DA44

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B891B#FFFFFF#000000##000000
##7B891B1.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)
#938100
Deuteranopia (green-blind)
#928226
Tritanopia (blue-blind)
#838175
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7b891b;
/* rgb */ color: rgb(123, 137, 27);
/* oklch */ color: oklch(59.9% 0.129 117.0);
Tailwind
colors: {
  custom: {
    50: '#a4ab62',
    500: '#7b891b',
    950: '#000000',
  },
}
SCSS
$custom: #7b891b;
$custom-light: #a4ab62;
$custom-dark: #000000;
JSON
{
  "hex": "#7b891b",
  "rgb": {
    "r": 123,
    "g": 137,
    "b": 27
  },
  "hsl": {
    "h": 67.636,
    "s": 67.073,
    "l": 32.157
  },
  "oklch": {
    "l": 0.59877,
    "c": 0.12853,
    "h": 117
  },
  "luminance": 0.22181
}

Semantic roles & 50–950 ramp

primary
#7B891B
secondary
#5344BC
accent
#3EEA54
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7B891B

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

Preview Lab → · Contrast checker → · Palette generator →

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