#7B891C#7B891C

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

Color values

HEX#7B891C
RGBrgb(123, 137, 28)
HSLhsl(68, 66%, 32%)
HSVhsv(68, 80%, 54%)
CMYKcmyk(10.2%, 0%, 79.6%, 46.3%)
CIE-LABlab(54.22, -19.20, 52.09)
CIE-LCHlch(54.22, 55.52, 110.23°)
OKLaboklab(59.88% -0.0582 0.114)
OKLCHoklch(59.88% 0.128 117)
XYZxyz(17.3241, 22.1863, 4.4681)
Luminance0.2219 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B891C #2A1C89
analogous
#89601C #7B891C #45891C
triadic
#7B891C #1C7B89 #891C7B
tetradic
#7B891C #1C8960 #2A1C89 #891C45
square
#7B891C #1C8960 #2A1C89 #891C45
split-complementary
#7B891C #1C4589 #601C89
monochromatic
#202307 #4D5612 #7B891C #A9BC26 #C6D946

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B891C#FFFFFF#000000##000000
##7B891C1.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: #7b891c;
/* rgb */ color: rgb(123, 137, 28);
/* oklch */ color: oklch(59.9% 0.128 117.0);
Tailwind
colors: {
  custom: {
    50: '#a4ab62',
    500: '#7b891c',
    950: '#000000',
  },
}
SCSS
$custom: #7b891c;
$custom-light: #a4ab62;
$custom-dark: #000000;
JSON
{
  "hex": "#7b891c",
  "rgb": {
    "r": 123,
    "g": 137,
    "b": 28
  },
  "hsl": {
    "h": 67.706,
    "s": 66.061,
    "l": 32.353
  },
  "oklch": {
    "l": 0.59882,
    "c": 0.12801,
    "h": 117
  },
  "luminance": 0.22186
}

Semantic roles & 50–950 ramp

primary
#7B891C
secondary
#5546BB
accent
#3FE955
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7B891C

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

Preview Lab → · Contrast checker → · Palette generator →

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