#AFAC78#AFAC78

#AFAC78 is a light, moderate yellow. Relative luminance 0.400; OKLCH L 73.4% C 0.070 H 105.2°. Best body text is #000000 at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#AFAC78
RGBrgb(175, 172, 120)
HSLhsl(57, 26%, 58%)
HSVhsv(57, 31%, 69%)
CMYKcmyk(0%, 1.7%, 31.4%, 31.4%)
CIE-LABlab(69.45, -7.16, 27.20)
CIE-LCHlch(69.45, 28.13, 104.75°)
OKLaboklab(73.41% -0.0184 0.0678)
OKLCHoklch(73.41% 0.07 105.2)
XYZxyz(35.8221, 39.9758, 23.5947)
Luminance0.3997 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAC78 #787BAF
analogous
#AF9078 #AFAC78 #96AF78
triadic
#AFAC78 #78AFAC #AC78AF
tetradic
#AFAC78 #78AF90 #787BAF #AF7896
square
#AFAC78 #78AF90 #787BAF #AF7896
split-complementary
#AFAC78 #7896AF #9078AF
monochromatic
#6C6A40 #939057 #AFAC78 #C6C49E #DDDBC5

Accessibility & contrast

On white

2.33
#AFAC78 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.99
#AFAC78 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAC78
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAC78#FFFFFF#000000##000000
##AFAC781.002.338.998.99
#FFFFFF2.331.0021.0021.00
#0000008.9921.001.001.00
##0000008.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A874
Deuteranopia (green-blind)
#B6AB7A
Tritanopia (blue-blind)
#B7A59F
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afac78;
/* rgb */ color: rgb(175, 172, 120);
/* oklch */ color: oklch(73.4% 0.070 105.2);
Tailwind
colors: {
  custom: {
    50: '#c7c49f',
    500: '#afac78',
    950: '#000000',
  },
}
SCSS
$custom: #afac78;
$custom-light: #c7c49f;
$custom-dark: #000000;
JSON
{
  "hex": "#afac78",
  "rgb": {
    "r": 175,
    "g": 172,
    "b": 120
  },
  "hsl": {
    "h": 56.727,
    "s": 25.581,
    "l": 57.843
  },
  "oklch": {
    "l": 0.73414,
    "c": 0.07025,
    "h": 105.2
  },
  "luminance": 0.39975
}

Semantic roles & 50–950 ramp

primary
#AFAC78
secondary
#B6B8CC
accent
#6BC266
background
#FCFCF9
surface
#F8F8F2
border
#D1D1CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #AFAC78

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

Preview Lab → · Contrast checker → · Palette generator →

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