#7C8B1F#7C8B1F

#7C8B1F is a mid, vivid yellow. Relative luminance 0.228; OKLCH L 60.5% C 0.128 H 117.5°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#7C8B1F
RGBrgb(124, 139, 31)
HSLhsl(68, 64%, 33%)
HSVhsv(68, 78%, 55%)
CMYKcmyk(10.8%, 0%, 77.7%, 45.5%)
CIE-LABlab(54.92, -19.65, 51.77)
CIE-LCHlch(54.92, 55.38, 110.79°)
OKLaboklab(60.46% -0.0592 0.1139)
OKLCHoklch(60.46% 0.128 117.5)
XYZxyz(17.7926, 22.8495, 4.7691)
Luminance0.2285 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8B1F #2E1F8B
analogous
#8B641F #7C8B1F #468B1F
triadic
#7C8B1F #1F7C8B #8B1F7C
tetradic
#7C8B1F #1F8B64 #2E1F8B #8B1F46
square
#7C8B1F #1F8B64 #2E1F8B #8B1F46
split-complementary
#7C8B1F #1F468B #641F8B
monochromatic
#232709 #4F5914 #7C8B1F #A9BD2A #C4D74D

Accessibility & contrast

On white

3.77
#7C8B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#7C8B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8B1F
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8B1F#FFFFFF#000000##000000
##7C8B1F1.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#958304
Deuteranopia (green-blind)
#938429
Tritanopia (blue-blind)
#848377
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7c8b1f;
/* rgb */ color: rgb(124, 139, 31);
/* oklch */ color: oklch(60.5% 0.128 117.5);
Tailwind
colors: {
  custom: {
    50: '#a5ac64',
    500: '#7c8b1f',
    950: '#000000',
  },
}
SCSS
$custom: #7c8b1f;
$custom-light: #a5ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8b1f",
  "rgb": {
    "r": 124,
    "g": 139,
    "b": 31
  },
  "hsl": {
    "h": 68.333,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.60464,
    "c": 0.12835,
    "h": 117.5
  },
  "luminance": 0.22849
}

Semantic roles & 50–950 ramp

primary
#7C8B1F
secondary
#5B4CBA
accent
#41E758
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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