#7C8A12#7C8A12

#7C8A12 is a mid, vivid yellow. Relative luminance 0.225; OKLCH L 60.2% C 0.133 H 116.8°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#7C8A12
RGBrgb(124, 138, 18)
HSLhsl(67, 77%, 31%)
HSVhsv(67, 87%, 54%)
CMYKcmyk(10.1%, 0%, 87%, 45.9%)
CIE-LABlab(54.56, -19.63, 55.20)
CIE-LCHlch(54.56, 58.59, 109.58°)
OKLaboklab(60.16% -0.0601 0.1189)
OKLCHoklch(60.16% 0.133 116.8)
XYZxyz(17.5103, 22.5060, 3.9938)
Luminance0.2251 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8A12 #20128A
analogous
#8A5C12 #7C8A12 #408A12
triadic
#7C8A12 #127C8A #8A127C
tetradic
#7C8A12 #128A5C #20128A #8A1240
square
#7C8A12 #128A5C #20128A #8A1240
split-complementary
#7C8A12 #12408A #5C128A
monochromatic
#1B1E04 #4B540B #7C8A12 #ADC019 #CFE432

Accessibility & contrast

On white

3.82
#7C8A12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#7C8A12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8A12
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8A12#FFFFFF#000000##000000
##7C8A121.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#938320
Tritanopia (blue-blind)
#848275
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7c8a12;
/* rgb */ color: rgb(124, 138, 18);
/* oklch */ color: oklch(60.2% 0.133 116.8);
Tailwind
colors: {
  custom: {
    50: '#a6ac5f',
    500: '#7c8a12',
    950: '#000000',
  },
}
SCSS
$custom: #7c8a12;
$custom-light: #a6ac5f;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8a12",
  "rgb": {
    "r": 124,
    "g": 138,
    "b": 18
  },
  "hsl": {
    "h": 67,
    "s": 76.923,
    "l": 30.588
  },
  "oklch": {
    "l": 0.60158,
    "c": 0.13324,
    "h": 116.8
  },
  "luminance": 0.22506
}

Semantic roles & 50–950 ramp

primary
#7C8A12
secondary
#4939BF
accent
#34F34B
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#101005
muted
#7F7F79

Preview Lab

Preview with #7C8A12

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

Preview Lab → · Contrast checker → · Palette generator →

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