#7C8A26#7C8A26

#7C8A26 is a mid, vivid yellow. Relative luminance 0.226; OKLCH L 60.3% C 0.123 H 117.2°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#7C8A26
RGBrgb(124, 138, 38)
HSLhsl(68, 57%, 35%)
HSVhsv(68, 72%, 54%)
CMYKcmyk(10.1%, 0%, 72.5%, 45.9%)
CIE-LABlab(54.66, -18.77, 48.98)
CIE-LCHlch(54.66, 52.46, 110.97°)
OKLaboklab(60.27% -0.0561 0.1093)
OKLCHoklch(60.27% 0.123 117.2)
XYZxyz(17.7509, 22.6022, 5.2609)
Luminance0.2260 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8A26 #34268A
analogous
#8A6626 #7C8A26 #4A8A26
triadic
#7C8A26 #267C8A #8A267C
tetradic
#7C8A26 #268A66 #34268A #8A264A
square
#7C8A26 #268A66 #34268A #8A264A
split-complementary
#7C8A26 #264A8A #66268A
monochromatic
#262A0C #515A19 #7C8A26 #A7BA33 #C0D159

Accessibility & contrast

On white

3.80
#7C8A26 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#7C8A26 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8A26
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8A26#FFFFFF#000000##000000
##7C8A261.003.805.525.52
#FFFFFF3.801.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#948215
Deuteranopia (green-blind)
#92832E
Tritanopia (blue-blind)
#848276
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7c8a26;
/* rgb */ color: rgb(124, 138, 38);
/* oklch */ color: oklch(60.3% 0.123 117.2);
Tailwind
colors: {
  custom: {
    50: '#a5ac67',
    500: '#7c8a26',
    950: '#000000',
  },
}
SCSS
$custom: #7c8a26;
$custom-light: #a5ac67;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8a26",
  "rgb": {
    "r": 124,
    "g": 138,
    "b": 38
  },
  "hsl": {
    "h": 68.4,
    "s": 56.818,
    "l": 34.51
  },
  "oklch": {
    "l": 0.60271,
    "c": 0.12282,
    "h": 117.2
  },
  "luminance": 0.22602
}

Semantic roles & 50–950 ramp

primary
#7C8A26
secondary
#6356B6
accent
#48E05D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8A26

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

Preview Lab → · Contrast checker → · Palette generator →

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