#7B8B1C#7B8B1C

#7B8B1C is a mid, vivid yellow. Relative luminance 0.228; OKLCH L 60.4% C 0.130 H 117.9°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#7B8B1C
RGBrgb(123, 139, 28)
HSLhsl(69, 66%, 33%)
HSVhsv(69, 80%, 55%)
CMYKcmyk(11.5%, 0%, 79.9%, 45.5%)
CIE-LABlab(54.82, -20.23, 52.64)
CIE-LCHlch(54.82, 56.39, 111.02°)
OKLaboklab(60.37% -0.061 0.1152)
OKLCHoklch(60.37% 0.13 117.9)
XYZxyz(17.6110, 22.7602, 4.5638)
Luminance0.2276 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8B1C #2C1C8B
analogous
#8B641C #7B8B1C #438B1C
triadic
#7B8B1C #1C7B8B #8B1C7B
tetradic
#7B8B1C #1C8B64 #2C1C8B #8B1C43
square
#7B8B1C #1C8B64 #2C1C8B #8B1C43
split-complementary
#7B8B1C #1C438B #641C8B
monochromatic
#212507 #4E5812 #7B8B1C #A8BE26 #C5DA47

Accessibility & contrast

On white

3.78
#7B8B1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#7B8B1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8B1C
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8B1C#FFFFFF#000000##000000
##7B8B1C1.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#938427
Tritanopia (blue-blind)
#838377
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7b8b1c;
/* rgb */ color: rgb(123, 139, 28);
/* oklch */ color: oklch(60.4% 0.130 117.9);
Tailwind
colors: {
  custom: {
    50: '#a4ac63',
    500: '#7b8b1c',
    950: '#000000',
  },
}
SCSS
$custom: #7b8b1c;
$custom-light: #a4ac63;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8b1c",
  "rgb": {
    "r": 123,
    "g": 139,
    "b": 28
  },
  "hsl": {
    "h": 68.649,
    "s": 66.467,
    "l": 32.745
  },
  "oklch": {
    "l": 0.60365,
    "c": 0.13035,
    "h": 117.9
  },
  "luminance": 0.2276
}

Semantic roles & 50–950 ramp

primary
#7B8B1C
secondary
#5847BC
accent
#3EE957
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7B8B1C

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

Preview Lab → · Contrast checker → · Palette generator →

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