#798528#798528

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

Color values

HEX#798528
RGBrgb(121, 133, 40)
HSLhsl(68, 54%, 34%)
HSVhsv(68, 70%, 52%)
CMYKcmyk(9%, 0%, 69.9%, 47.8%)
CIE-LABlab(52.94, -17.36, 46.39)
CIE-LCHlch(52.94, 49.53, 110.52°)
OKLaboklab(58.84% -0.0518 0.1042)
OKLCHoklch(58.84% 0.116 116.4)
XYZxyz(16.6561, 20.9934, 5.1818)
Luminance0.2099 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798528 #342885
analogous
#856328 #798528 #4B8528
triadic
#798528 #287985 #852879
tetradic
#798528 #288563 #342885 #85284B
square
#798528 #288563 #342885 #85284B
split-complementary
#798528 #284B85 #632885
monochromatic
#23270C #4E561A #798528 #A4B436 #BECD5A

Accessibility & contrast

On white

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

On black

5.20
#798528 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798528
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798528#FFFFFF#000000##000000
##7985281.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #798528;
/* rgb */ color: rgb(121, 133, 40);
/* oklch */ color: oklch(58.8% 0.116 116.4);
Tailwind
colors: {
  custom: {
    50: '#a2a868',
    500: '#798528',
    950: '#000000',
  },
}
SCSS
$custom: #798528;
$custom-light: #a2a868;
$custom-dark: #000000;
JSON
{
  "hex": "#798528",
  "rgb": {
    "r": 121,
    "g": 133,
    "b": 40
  },
  "hsl": {
    "h": 67.742,
    "s": 53.757,
    "l": 33.922
  },
  "oklch": {
    "l": 0.58837,
    "c": 0.1164,
    "h": 116.4
  },
  "luminance": 0.20993
}

Semantic roles & 50–950 ramp

primary
#798528
secondary
#6256B3
accent
#4BDD5E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #798528

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

Preview Lab → · Contrast checker → · Palette generator →

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