#798126#798126

#798126 is a mid, moderate yellow. Relative luminance 0.199; OKLCH L 57.9% C 0.113 H 114.3°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#798126
RGBrgb(121, 129, 38)
HSLhsl(65, 54%, 33%)
HSVhsv(65, 71%, 51%)
CMYKcmyk(6.2%, 0%, 70.5%, 49.4%)
CIE-LABlab(51.73, -15.37, 45.99)
CIE-LCHlch(51.73, 48.49, 108.48°)
OKLaboklab(57.86% -0.0465 0.103)
OKLCHoklch(57.86% 0.113 114.3)
XYZxyz(16.0857, 19.9057, 4.8282)
Luminance0.1991 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798126 #2E2681
analogous
#815C26 #798126 #4B8126
triadic
#798126 #267981 #812679
tetradic
#798126 #26815C #2E2681 #81264B
square
#798126 #26815C #2E2681 #81264B
split-complementary
#798126 #264B81 #5C2681
monochromatic
#20220A #4D5218 #798126 #A5B034 #C2CD55

Accessibility & contrast

On white

4.22
#798126 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#798126 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798126
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798126#FFFFFF#000000##000000
##7981261.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B18
Deuteranopia (green-blind)
#8A7C2D
Tritanopia (blue-blind)
#81796F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #798126;
/* rgb */ color: rgb(121, 129, 38);
/* oklch */ color: oklch(57.9% 0.113 114.3);
Tailwind
colors: {
  custom: {
    50: '#a2a566',
    500: '#798126',
    950: '#000000',
  },
}
SCSS
$custom: #798126;
$custom-light: #a2a566;
$custom-dark: #000000;
JSON
{
  "hex": "#798126",
  "rgb": {
    "r": 121,
    "g": 129,
    "b": 38
  },
  "hsl": {
    "h": 65.275,
    "s": 54.491,
    "l": 32.745
  },
  "oklch": {
    "l": 0.5786,
    "c": 0.11303,
    "h": 114.3
  },
  "luminance": 0.19905
}

Semantic roles & 50–950 ramp

primary
#798126
secondary
#5A51B1
accent
#4ADE57
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #798126

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

Preview Lab → · Contrast checker → · Palette generator →

#798126 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva