#798124#798124

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

Color values

HEX#798124
RGBrgb(121, 129, 36)
HSLhsl(65, 56%, 32%)
HSVhsv(65, 72%, 51%)
CMYKcmyk(6.2%, 0%, 72.1%, 49.4%)
CIE-LABlab(51.72, -15.49, 46.78)
CIE-LCHlch(51.72, 49.28, 108.32°)
OKLaboklab(57.84% -0.047 0.1044)
OKLCHoklch(57.84% 0.114 114.3)
XYZxyz(16.0543, 19.8931, 4.6628)
Luminance0.1989 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798124 #2C2481
analogous
#815A24 #798124 #4B8124
triadic
#798124 #247981 #812479
tetradic
#798124 #24815A #2C2481 #81244B
square
#798124 #24815A #2C2481 #81244B
split-complementary
#798124 #244B81 #5A2481
monochromatic
#1F2109 #4C5117 #798124 #A6B131 #C4CE51

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##798124#FFFFFF#000000##000000
##7981241.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)
#8B7A15
Deuteranopia (green-blind)
#8A7C2B
Tritanopia (blue-blind)
#81796F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #798124;
/* rgb */ color: rgb(121, 129, 36);
/* oklch */ color: oklch(57.8% 0.114 114.3);
Tailwind
colors: {
  custom: {
    50: '#a2a565',
    500: '#798124',
    950: '#000000',
  },
}
SCSS
$custom: #798124;
$custom-light: #a2a565;
$custom-dark: #000000;
JSON
{
  "hex": "#798124",
  "rgb": {
    "r": 121,
    "g": 129,
    "b": 36
  },
  "hsl": {
    "h": 65.161,
    "s": 56.364,
    "l": 32.353
  },
  "oklch": {
    "l": 0.57844,
    "c": 0.11446,
    "h": 114.3
  },
  "luminance": 0.19893
}

Semantic roles & 50–950 ramp

primary
#798124
secondary
#574EB2
accent
#48E055
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #798124

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

Preview Lab → · Contrast checker → · Palette generator →

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