#AFA256#AFA256

#AFA256 is a light, moderate yellow. Relative luminance 0.356; OKLCH L 70.7% C 0.099 H 99.8°. Best body text is #000000 at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#AFA256
RGBrgb(175, 162, 86)
HSLhsl(51, 36%, 51%)
HSVhsv(51, 51%, 69%)
CMYKcmyk(0%, 7.4%, 50.9%, 31.4%)
CIE-LABlab(66.23, -5.61, 40.89)
CIE-LCHlch(66.23, 41.27, 97.81°)
OKLaboklab(70.7% -0.0167 0.0971)
OKLCHoklch(70.7% 0.099 99.8)
XYZxyz(32.2802, 35.6277, 13.9787)
Luminance0.3563 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA256 #5663AF
analogous
#AF7556 #AFA256 #8FAF56
triadic
#AFA256 #56AFA2 #A256AF
tetradic
#AFA256 #56AF75 #5663AF #AF568F
square
#AFA256 #56AF75 #5663AF #AF568F
split-complementary
#AFA256 #568FAF #7556AF
monochromatic
#5E572D #887D40 #AFA256 #C3B980 #D6D0A9

Accessibility & contrast

On white

2.58
#AFA256 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.13
#AFA256 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA256
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA256#FFFFFF#000000##000000
##AFA2561.002.588.138.13
#FFFFFF2.581.0021.0021.00
#0000008.1321.001.001.00
##0000008.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9E4F
Deuteranopia (green-blind)
#B2A359
Tritanopia (blue-blind)
#BA9990
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa256;
/* rgb */ color: rgb(175, 162, 86);
/* oklch */ color: oklch(70.7% 0.099 99.8);
Tailwind
colors: {
  custom: {
    50: '#c9bd87',
    500: '#afa256',
    950: '#000000',
  },
}
SCSS
$custom: #afa256;
$custom-light: #c9bd87;
$custom-dark: #000000;
JSON
{
  "hex": "#afa256",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 86
  },
  "hsl": {
    "h": 51.236,
    "s": 35.743,
    "l": 51.176
  },
  "oklch": {
    "l": 0.70699,
    "c": 0.09851,
    "h": 99.8
  },
  "luminance": 0.35627
}

Semantic roles & 50–950 ramp

primary
#AFA256
secondary
#9DA2C4
accent
#6CCC5C
background
#FCFBF8
surface
#F8F6F0
border
#D1D0CB
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA256

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

Preview Lab → · Contrast checker → · Palette generator →

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