#AFB256#AFB256

#AFB256 is a light, moderate yellow. Relative luminance 0.416; OKLCH L 74.2% C 0.116 H 110.6°. Best body text is #000000 at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#AFB256
RGBrgb(175, 178, 86)
HSLhsl(62, 37%, 52%)
HSVhsv(62, 52%, 70%)
CMYKcmyk(1.7%, 0%, 51.7%, 30.2%)
CIE-LABlab(70.61, -14.00, 46.09)
CIE-LCHlch(70.61, 48.17, 106.89°)
OKLaboklab(74.18% -0.0407 0.1084)
OKLCHoklch(74.18% 0.116 110.6)
XYZxyz(35.2801, 41.6274, 14.9787)
Luminance0.4163 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB256 #5956B2
analogous
#B28756 #AFB256 #81B256
triadic
#AFB256 #56AFB2 #B256AF
tetradic
#AFB256 #56B287 #5956B2 #B25681
square
#AFB256 #56B287 #5956B2 #B25681
split-complementary
#AFB256 #5681B2 #8756B2
monochromatic
#60612C #898B3F #AFB256 #C3C580 #D7D8AA

Accessibility & contrast

On white

2.25
#AFB256 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.33
#AFB256 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB256
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB256#FFFFFF#000000##000000
##AFB2561.002.259.339.33
#FFFFFF2.251.0021.0021.00
#0000009.3321.001.001.00
##0000009.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEAB4D
Deuteranopia (green-blind)
#BFAE5B
Tritanopia (blue-blind)
#B9A99D
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afb256;
/* rgb */ color: rgb(175, 178, 86);
/* oklch */ color: oklch(74.2% 0.116 110.6);
Tailwind
colors: {
  custom: {
    50: '#c9c888',
    500: '#afb256',
    950: '#000000',
  },
}
SCSS
$custom: #afb256;
$custom-light: #c9c888;
$custom-dark: #000000;
JSON
{
  "hex": "#afb256",
  "rgb": {
    "r": 175,
    "g": 178,
    "b": 86
  },
  "hsl": {
    "h": 61.957,
    "s": 37.398,
    "l": 51.765
  },
  "oklch": {
    "l": 0.7418,
    "c": 0.11583,
    "h": 110.6
  },
  "luminance": 0.41627
}

Semantic roles & 50–950 ramp

primary
#AFB256
secondary
#9F9EC6
accent
#5ACD5E
background
#FCFCF8
surface
#F8F8F0
border
#D1D1CB
text
#13130C
muted
#82827D

Preview Lab

Preview with #AFB256

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

Preview Lab → · Contrast checker → · Palette generator →

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