#AFB274#AFB274

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

Color values

HEX#AFB274
RGBrgb(175, 178, 116)
HSLhsl(63, 29%, 58%)
HSVhsv(63, 35%, 70%)
CMYKcmyk(1.7%, 0%, 34.8%, 30.2%)
CIE-LABlab(71.02, -10.82, 31.39)
CIE-LCHlch(71.02, 33.20, 109.02°)
OKLaboklab(74.64% -0.0291 0.0774)
OKLCHoklch(74.64% 0.083 110.6)
XYZxyz(36.7522, 42.2163, 22.7321)
Luminance0.4222 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB274 #7774B2
analogous
#B29674 #AFB274 #90B274
triadic
#AFB274 #74AFB2 #B274AF
tetradic
#AFB274 #74B296 #7774B2 #B27490
square
#AFB274 #74B296 #7774B2 #B27490
split-complementary
#AFB274 #7490B2 #9674B2
monochromatic
#6C6E3D #939653 #AFB274 #C6C89B #DCDEC3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB274#FFFFFF#000000##000000
##AFB2741.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)
#BBAD70
Deuteranopia (green-blind)
#BCAF77
Tritanopia (blue-blind)
#B7ABA2
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #afb274;
/* rgb */ color: rgb(175, 178, 116);
/* oklch */ color: oklch(74.6% 0.083 110.6);
Tailwind
colors: {
  custom: {
    50: '#c8c99c',
    500: '#afb274',
    950: '#000000',
  },
}
SCSS
$custom: #afb274;
$custom-light: #c8c99c;
$custom-dark: #000000;
JSON
{
  "hex": "#afb274",
  "rgb": {
    "r": 175,
    "g": 178,
    "b": 116
  },
  "hsl": {
    "h": 62.903,
    "s": 28.704,
    "l": 57.647
  },
  "oklch": {
    "l": 0.74636,
    "c": 0.08273,
    "h": 110.6
  },
  "luminance": 0.42216
}

Semantic roles & 50–950 ramp

primary
#AFB274
secondary
#B6B4CD
accent
#63C568
background
#FCFCF9
surface
#F8F8F2
border
#D1D1CC
text
#13130E
muted
#82827E

Preview Lab

Preview with #AFB274

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

Preview Lab → · Contrast checker → · Palette generator →

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