#AFB273#AFB273

#AFB273 is a light, moderate yellow. Relative luminance 0.422; OKLCH L 74.6% C 0.084 H 110.6°. Best body text is #000000 at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#AFB273
RGBrgb(175, 178, 115)
HSLhsl(63, 29%, 57%)
HSVhsv(63, 35%, 70%)
CMYKcmyk(1.7%, 0%, 35.4%, 30.2%)
CIE-LABlab(71.00, -10.94, 31.89)
CIE-LCHlch(71.00, 33.72, 108.94°)
OKLaboklab(74.62% -0.0295 0.0786)
OKLCHoklch(74.62% 0.084 110.6)
XYZxyz(36.6944, 42.1931, 22.4274)
Luminance0.4219 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB273 #7673B2
analogous
#B29573 #AFB273 #90B273
triadic
#AFB273 #73AFB2 #B273AF
tetradic
#AFB273 #73B295 #7673B2 #B27390
square
#AFB273 #73B295 #7673B2 #B27390
split-complementary
#AFB273 #7390B2 #9573B2
monochromatic
#6C6E3D #929652 #AFB273 #C6C89A #DCDDC2

Accessibility & contrast

On white

2.22
#AFB273 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.44
#AFB273 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB273
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB273#FFFFFF#000000##000000
##AFB2731.002.229.449.44
#FFFFFF2.221.0021.0021.00
#0000009.4421.001.001.00
##0000009.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBAD6E
Deuteranopia (green-blind)
#BCAF76
Tritanopia (blue-blind)
#B7ABA2
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #afb273;
/* rgb */ color: rgb(175, 178, 115);
/* oklch */ color: oklch(74.6% 0.084 110.6);
Tailwind
colors: {
  custom: {
    50: '#c8c99c',
    500: '#afb273',
    950: '#000000',
  },
}
SCSS
$custom: #afb273;
$custom-light: #c8c99c;
$custom-dark: #000000;
JSON
{
  "hex": "#afb273",
  "rgb": {
    "r": 175,
    "g": 178,
    "b": 115
  },
  "hsl": {
    "h": 62.857,
    "s": 29.032,
    "l": 57.451
  },
  "oklch": {
    "l": 0.74618,
    "c": 0.08393,
    "h": 110.6
  },
  "luminance": 0.42193
}

Semantic roles & 50–950 ramp

primary
#AFB273
secondary
#B5B4CD
accent
#62C567
background
#FCFCF9
surface
#F8F8F2
border
#D1D1CC
text
#13130E
muted
#82827E

Preview Lab

Preview with #AFB273

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

Preview Lab → · Contrast checker → · Palette generator →

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