#798524#798524

#798524 is a mid, moderate yellow. Relative luminance 0.210; OKLCH L 58.8% C 0.119 H 116.3°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#798524
RGBrgb(121, 133, 36)
HSLhsl(67, 57%, 33%)
HSVhsv(67, 73%, 52%)
CMYKcmyk(9%, 0%, 72.9%, 47.8%)
CIE-LABlab(52.91, -17.61, 47.96)
CIE-LCHlch(52.91, 51.09, 110.16°)
OKLaboklab(58.8% -0.0529 0.1068)
OKLCHoklch(58.8% 0.119 116.3)
XYZxyz(16.5915, 20.9676, 4.8418)
Luminance0.2097 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798524 #302485
analogous
#856024 #798524 #488524
triadic
#798524 #247985 #852479
tetradic
#798524 #248560 #302485 #852448
square
#798524 #248560 #302485 #852448
split-complementary
#798524 #244885 #602485
monochromatic
#21250A #4D5517 #798524 #A5B531 #C1D053

Accessibility & contrast

On white

4.04
#798524 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#798524 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798524
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798524#FFFFFF#000000##000000
##7985241.004.045.195.19
#FFFFFF4.041.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E13
Deuteranopia (green-blind)
#8D7F2C
Tritanopia (blue-blind)
#817D72
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #798524;
/* rgb */ color: rgb(121, 133, 36);
/* oklch */ color: oklch(58.8% 0.119 116.3);
Tailwind
colors: {
  custom: {
    50: '#a3a866',
    500: '#798524',
    950: '#000000',
  },
}
SCSS
$custom: #798524;
$custom-light: #a3a866;
$custom-dark: #000000;
JSON
{
  "hex": "#798524",
  "rgb": {
    "r": 121,
    "g": 133,
    "b": 36
  },
  "hsl": {
    "h": 67.423,
    "s": 57.396,
    "l": 33.137
  },
  "oklch": {
    "l": 0.58805,
    "c": 0.11922,
    "h": 116.3
  },
  "luminance": 0.20967
}

Semantic roles & 50–950 ramp

primary
#798524
secondary
#5D50B4
accent
#47E15A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #798524

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

Preview Lab → · Contrast checker → · Palette generator →

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