#AFB246#AFB246

#AFB246 is a light, vivid yellow. Relative luminance 0.414; OKLCH L 74.0% C 0.130 H 110.7°. Best body text is #000000 at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#AFB246
RGBrgb(175, 178, 70)
HSLhsl(62, 44%, 49%)
HSVhsv(62, 61%, 70%)
CMYKcmyk(1.7%, 0%, 60.7%, 30.2%)
CIE-LABlab(70.45, -15.27, 53.29)
CIE-LCHlch(70.45, 55.43, 105.99°)
OKLaboklab(74% -0.0461 0.122)
OKLCHoklch(74% 0.13 110.7)
XYZxyz(34.7061, 41.3978, 11.9555)
Luminance0.4140 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB246 #4946B2
analogous
#B27F46 #AFB246 #79B246
triadic
#AFB246 #46AFB2 #B246AF
tetradic
#AFB246 #46B27F #4946B2 #B24679
square
#AFB246 #46B27F #4946B2 #B24679
split-complementary
#AFB246 #4679B2 #7F46B2
monochromatic
#595A23 #848635 #AFB246 #C4C66F #D6D89B

Accessibility & contrast

On white

2.26
#AFB246 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.28
#AFB246 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB246
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB246#FFFFFF#000000##000000
##AFB2461.002.269.289.28
#FFFFFF2.261.0021.0021.00
#0000009.2821.001.001.00
##0000009.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFAB39
Deuteranopia (green-blind)
#C0AE4D
Tritanopia (blue-blind)
#BAA89B
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afb246;
/* rgb */ color: rgb(175, 178, 70);
/* oklch */ color: oklch(74.0% 0.130 110.7);
Tailwind
colors: {
  custom: {
    50: '#c9c87e',
    500: '#afb246',
    950: '#000000',
  },
}
SCSS
$custom: #afb246;
$custom-light: #c9c87e;
$custom-dark: #000000;
JSON
{
  "hex": "#afb246",
  "rgb": {
    "r": 175,
    "g": 178,
    "b": 70
  },
  "hsl": {
    "h": 61.667,
    "s": 43.548,
    "l": 48.627
  },
  "oklch": {
    "l": 0.74002,
    "c": 0.13039,
    "h": 110.7
  },
  "luminance": 0.41397
}

Semantic roles & 50–950 ramp

primary
#AFB246
secondary
#9190C4
accent
#55D358
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFB246

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

Preview Lab → · Contrast checker → · Palette generator →

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