#7B871C#7B871C

#7B871C is a mid, vivid yellow. Relative luminance 0.216; OKLCH L 59.4% C 0.126 H 116.1°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#7B871C
RGBrgb(123, 135, 28)
HSLhsl(67, 66%, 32%)
HSVhsv(67, 79%, 53%)
CMYKcmyk(8.9%, 0%, 79.3%, 47.1%)
CIE-LABlab(53.62, -18.16, 51.54)
CIE-LCHlch(53.62, 54.65, 109.41°)
OKLaboklab(59.4% -0.0553 0.1129)
OKLCHoklch(59.4% 0.126 116.1)
XYZxyz(17.0424, 21.6230, 4.3743)
Luminance0.2162 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B871C #281C87
analogous
#875E1C #7B871C #46871C
triadic
#7B871C #1C7B87 #871C7B
tetradic
#7B871C #1C875E #281C87 #871C46
square
#7B871C #1C875E #281C87 #871C46
split-complementary
#7B871C #1C4687 #5E1C87
monochromatic
#1F2207 #4D5411 #7B871C #A9BA27 #C8D845

Accessibility & contrast

On white

3.94
#7B871C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#7B871C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B871C
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B871C#FFFFFF#000000##000000
##7B871C1.003.945.325.32
#FFFFFF3.941.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#918000
Deuteranopia (green-blind)
#908126
Tritanopia (blue-blind)
#837F73
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7b871c;
/* rgb */ color: rgb(123, 135, 28);
/* oklch */ color: oklch(59.4% 0.126 116.1);
Tailwind
colors: {
  custom: {
    50: '#a4a962',
    500: '#7b871c',
    950: '#000000',
  },
}
SCSS
$custom: #7b871c;
$custom-light: #a4a962;
$custom-dark: #000000;
JSON
{
  "hex": "#7b871c",
  "rgb": {
    "r": 123,
    "g": 135,
    "b": 28
  },
  "hsl": {
    "h": 66.729,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.594,
    "c": 0.12569,
    "h": 116.1
  },
  "luminance": 0.21623
}

Semantic roles & 50–950 ramp

primary
#7B871C
secondary
#5245BA
accent
#3FE952
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7B871C

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

Preview Lab → · Contrast checker → · Palette generator →

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