#AFA768#AFA768

#AFA768 is a light, moderate yellow. Relative luminance 0.378; OKLCH L 72.0% C 0.084 H 102.0°. Best body text is #000000 at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#AFA768
RGBrgb(175, 167, 104)
HSLhsl(53, 31%, 55%)
HSVhsv(53, 41%, 69%)
CMYKcmyk(0%, 4.6%, 40.6%, 31.4%)
CIE-LABlab(67.84, -6.44, 33.59)
CIE-LCHlch(67.84, 34.21, 100.85°)
OKLaboklab(72.05% -0.0174 0.082)
OKLCHoklch(72.05% 0.084 102)
XYZxyz(33.9972, 37.7518, 18.5900)
Luminance0.3775 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA768 #6870AF
analogous
#AF8368 #AFA768 #94AF68
triadic
#AFA768 #68AFA7 #A768AF
tetradic
#AFA768 #68AF83 #6870AF #AF6894
square
#AFA768 #68AF83 #6870AF #AF6894
split-complementary
#AFA768 #6894AF #8368AF
monochromatic
#666136 #8E874B #AFA768 #C4BE90 #D9D6B8

Accessibility & contrast

On white

2.46
#AFA768 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.55
#AFA768 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA768
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA768#FFFFFF#000000##000000
##AFA7681.002.468.558.55
#FFFFFF2.461.0021.0021.00
#0000008.5521.001.001.00
##0000008.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B2A363
Deuteranopia (green-blind)
#B4A76B
Tritanopia (blue-blind)
#B99F97
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa768;
/* rgb */ color: rgb(175, 167, 104);
/* oklch */ color: oklch(72.0% 0.084 102.0);
Tailwind
colors: {
  custom: {
    50: '#c8c194',
    500: '#afa768',
    950: '#000000',
  },
}
SCSS
$custom: #afa768;
$custom-light: #c8c194;
$custom-dark: #000000;
JSON
{
  "hex": "#afa768",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 104
  },
  "hsl": {
    "h": 53.239,
    "s": 30.736,
    "l": 54.706
  },
  "oklch": {
    "l": 0.7205,
    "c": 0.08382,
    "h": 102
  },
  "luminance": 0.37751
}

Semantic roles & 50–950 ramp

primary
#AFA768
secondary
#AAAEC8
accent
#6CC761
background
#FCFBF9
surface
#F8F7F1
border
#D1D0CB
text
#13120D
muted
#82817E

Preview Lab

Preview with #AFA768

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

Preview Lab → · Contrast checker → · Palette generator →

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