#AFB255#AFB255

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

Color values

HEX#AFB255
RGBrgb(175, 178, 85)
HSLhsl(62, 38%, 52%)
HSVhsv(62, 52%, 70%)
CMYKcmyk(1.7%, 0%, 52.2%, 30.2%)
CIE-LABlab(70.60, -14.09, 46.56)
CIE-LCHlch(70.60, 48.64, 106.83°)
OKLaboklab(74.17% -0.0411 0.1093)
OKLCHoklch(74.17% 0.117 110.6)
XYZxyz(35.2401, 41.6114, 14.7680)
Luminance0.4161 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB255 #5855B2
analogous
#B28755 #AFB255 #81B255
triadic
#AFB255 #55AFB2 #B255AF
tetradic
#AFB255 #55B287 #5855B2 #B25581
square
#AFB255 #55B287 #5855B2 #B25581
split-complementary
#AFB255 #5581B2 #8755B2
monochromatic
#5F612C #888B3F #AFB255 #C3C57F #D7D8A9

Accessibility & contrast

On white

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

On black

9.32
#AFB255 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB255
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB255#FFFFFF#000000##000000
##AFB2551.002.259.329.32
#FFFFFF2.251.0021.0021.00
#0000009.3221.001.001.00
##0000009.3221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afb255;
/* rgb */ color: rgb(175, 178, 85);
/* oklch */ color: oklch(74.2% 0.117 110.6);
Tailwind
colors: {
  custom: {
    50: '#c9c887',
    500: '#afb255',
    950: '#000000',
  },
}
SCSS
$custom: #afb255;
$custom-light: #c9c887;
$custom-dark: #000000;
JSON
{
  "hex": "#afb255",
  "rgb": {
    "r": 175,
    "g": 178,
    "b": 85
  },
  "hsl": {
    "h": 61.935,
    "s": 37.652,
    "l": 51.569
  },
  "oklch": {
    "l": 0.74168,
    "c": 0.11681,
    "h": 110.6
  },
  "luminance": 0.41611
}

Semantic roles & 50–950 ramp

primary
#AFB255
secondary
#9E9DC6
accent
#5ACE5E
background
#FCFCF8
surface
#F9F8F0
border
#D2D1CB
text
#13130B
muted
#82827C

Preview Lab

Preview with #AFB255

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

Preview Lab → · Contrast checker → · Palette generator →

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